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:
mingchuan 2016-12-28 01:05:45 +08:00 committed by Jörg Thalheim
parent 7cd1a58a75
commit 06090a73bb

View File

@ -60,6 +60,9 @@ stdenv.mkDerivation rec {
# patch the script which launches the prebuilt compiler
substituteInPlace $(pwd)/crystal-${version}-1/bin/crystal --replace \
"/usr/bin/env bash" "${stdenv.shell}"
substituteInPlace $(pwd)/crystal-${version}/bin/crystal --replace \
"/usr/bin/env bash" "${stdenv.shell}"
${fixPrebuiltBinary}
cd crystal-${version}