1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 23:20:55 +00:00

Merge pull request #21428 from sifmelcara/fix/crystal-lang

crystal: fix build in chroot environment
This commit is contained in:
Daiderd Jordan 2016-12-26 22:19:49 +01:00 committed by GitHub
commit 5d4894f3bc

View file

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