mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
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:
parent
2876b31ed5
commit
a0922271d3
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user