diff options
author | mingchuan <ming@culpring.com> | 2016-12-28 01:05:45 +0800 |
---|---|---|
committer | Jörg Thalheim <joerg@higgsboson.tk> | 2016-12-28 11:15:12 +0100 |
commit | 06090a73bbe8b1173b36bdf38ed4cbdd9348a911 (patch) | |
tree | ecd0e06c4d08f4bcadfbdb5db5c7bfcc00349383 /pkgs/development/compilers | |
parent | 7cd1a58a753e0cf7bb17dfc96ad51d3dbd3a354a (diff) | |
download | nixlib-06090a73bbe8b1173b36bdf38ed4cbdd9348a911.tar nixlib-06090a73bbe8b1173b36bdf38ed4cbdd9348a911.tar.gz nixlib-06090a73bbe8b1173b36bdf38ed4cbdd9348a911.tar.bz2 nixlib-06090a73bbe8b1173b36bdf38ed4cbdd9348a911.tar.lz nixlib-06090a73bbe8b1173b36bdf38ed4cbdd9348a911.tar.xz nixlib-06090a73bbe8b1173b36bdf38ed4cbdd9348a911.tar.zst nixlib-06090a73bbe8b1173b36bdf38ed4cbdd9348a911.zip |
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.
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/crystal/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/compilers/crystal/default.nix b/pkgs/development/compilers/crystal/default.nix index 5bb3b60d96d5..39a06a4b1dca 100644 --- a/pkgs/development/compilers/crystal/default.nix +++ b/pkgs/development/compilers/crystal/default.nix @@ -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} |