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:
commit
5d4894f3bc
|
@ -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 a new issue