forked from mirrors/nixpkgs
crystal: fix build in chroot environment, again
forgot to patch interpreter of the script used by Makefile, carefully ensure it can build without /usr/bin/env this time.
This commit is contained in:
parent
7cd1a58a75
commit
06090a73bb
|
@ -60,6 +60,9 @@ stdenv.mkDerivation rec {
|
||||||
# patch the script which launches the prebuilt compiler
|
# patch the script which launches the prebuilt compiler
|
||||||
substituteInPlace $(pwd)/crystal-${version}-1/bin/crystal --replace \
|
substituteInPlace $(pwd)/crystal-${version}-1/bin/crystal --replace \
|
||||||
"/usr/bin/env bash" "${stdenv.shell}"
|
"/usr/bin/env bash" "${stdenv.shell}"
|
||||||
|
substituteInPlace $(pwd)/crystal-${version}/bin/crystal --replace \
|
||||||
|
"/usr/bin/env bash" "${stdenv.shell}"
|
||||||
|
|
||||||
${fixPrebuiltBinary}
|
${fixPrebuiltBinary}
|
||||||
|
|
||||||
cd crystal-${version}
|
cd crystal-${version}
|
||||||
|
|
Loading…
Reference in a new issue