From a0922271d37ce3ed3c2a6b48d6f284d185d07e26 Mon Sep 17 00:00:00 2001 From: mingchuan Date: Tue, 27 Dec 2016 00:28:51 +0800 Subject: [PATCH] crystal: fix build in chroot environment previous build failed on hydra because /usr/bin/env do not exist in a chroot build environment. --- pkgs/development/compilers/crystal/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/compilers/crystal/default.nix b/pkgs/development/compilers/crystal/default.nix index ed9907a283b..5bb3b60d96d 100644 --- a/pkgs/development/compilers/crystal/default.nix +++ b/pkgs/development/compilers/crystal/default.nix @@ -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}