diff options
author | Francois-Rene Rideau <fare@tunes.org> | 2018-12-25 19:41:15 -0500 |
---|---|---|
committer | Francois-Rene Rideau <fare@tunes.org> | 2019-01-26 12:05:54 -0500 |
commit | 04469284cefc648b9e8e818e1a4ee656ec519fe0 (patch) | |
tree | 27792b94e45a8b4bcd738c13dc8450bbb1282f0d /pkgs/development/compilers/gerbil | |
parent | 83a48f7ac45b0f9131fb7b6462686d1096725c27 (diff) |
gerbil: use full path for gsc, gxc
Diffstat (limited to 'pkgs/development/compilers/gerbil')
-rw-r--r-- | pkgs/development/compilers/gerbil/build.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/compilers/gerbil/build.nix b/pkgs/development/compilers/gerbil/build.nix index 7ebd3f69cbf46..b20d6f9c47eff 100644 --- a/pkgs/development/compilers/gerbil/build.nix +++ b/pkgs/development/compilers/gerbil/build.nix @@ -24,9 +24,13 @@ stdenv.mkDerivation rec { patchShebangs . - find . -type f -executable -print0 | while IFS= read -r -d ''$'\0' f; do + grep -Fl '#!/usr/bin/env' `find . -type f -executable` | while read f ; do substituteInPlace "$f" --replace '#!/usr/bin/env' '#!${coreutils}/bin/env' done + grep -Fl '"gsc"' `find . -type f -name '*.s*'` | while read f ; do + substituteInPlace "$f" --replace '"gsc"' '"${gambit}/bin/gsc"' + done + substituteInPlace "etc/gerbil.el" --replace '"gxc"' "\"$out/bin/gxc\"" cat > etc/gerbil_static_libraries.sh <<EOF #OPENSSL_LIBCRYPTO=${makeStaticLibraries openssl}/lib/libcrypto.a # MISSING! |