From 06090a73bbe8b1173b36bdf38ed4cbdd9348a911 Mon Sep 17 00:00:00 2001 From: mingchuan Date: Wed, 28 Dec 2016 01:05:45 +0800 Subject: 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. --- pkgs/development/compilers/crystal/default.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkgs/development/compilers/crystal/default.nix') 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} -- cgit 1.4.1