crystal: fix build in chroot environment

previous build failed on hydra because /usr/bin/env
do not exist in a chroot build environment.
This commit is contained in:
mingchuan 2016-12-27 00:28:51 +08:00
parent 2876b31ed5
commit a0922271d3

View File

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