summaryrefslogtreecommitdiff
path: root/server/autobuild
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2022-08-22 01:38:50 -0500
committerGitHub <noreply@github.com>2022-08-22 12:08:50 +0530
commitc3d227c11bbeb18ea494fa832d0f23f71ccf9a9d (patch)
treed249bdd5e5a4f08f1c36ab40b4f1ab9690156514 /server/autobuild
parent6df41605cccb6f267693927dc153e7f0ae0c980d (diff)
Don't depend on gcc when building with `nix-shell` (#135)
* Use `--run` flag to execute nix-shell The `--command` flag is only required to spawn a interactive shell. * Do not require gcc to build with nix-shell `nix-shell` already sets CC with a C compiler, for instance Clang on darwin. * Remove outdated require in test-helper `f.el` is not needed anywhere.
Diffstat (limited to 'server/autobuild')
-rwxr-xr-xserver/autobuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/autobuild b/server/autobuild
index 1dcdff0..57d596b 100755
--- a/server/autobuild
+++ b/server/autobuild
@@ -383,8 +383,8 @@ os_nixos() {
command="AUTOBUILD_NIX_SHELL=true"
command="$command;export AUTOBUILD_NIX_SHELL"
command="$command;$(quote "$0" "$@")"
- exec nix-shell --pure --command "$command" \
- -p gcc gnumake automake autoconf pkgconfig libpng zlib poppler
+ exec nix-shell --pure --run "$command" \
+ -p automake autoconf pkgconfig libpng zlib poppler
}
# Gentoo