From 2fe842a20001aa2b02325b0f78a2be5f6bd88d90 Mon Sep 17 00:00:00 2001 From: Jack Cummings Date: Thu, 17 May 2018 10:36:56 -0700 Subject: [PATCH] fix ghc bootstrap on non-nixos nonstd-storepath Something goes amiss in the configurePhase and binaries start picking up system binaries and everything falls apart. Patch the configure script to use a bourne shell out of the store, and things are happier. Closes https://github.com/NixOS/nixpkgs/pull/40691. --- pkgs/development/compilers/ghc/7.10.3-binary.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/compilers/ghc/7.10.3-binary.nix b/pkgs/development/compilers/ghc/7.10.3-binary.nix index cb9f78aa081..48e2ca0a585 100644 --- a/pkgs/development/compilers/ghc/7.10.3-binary.nix +++ b/pkgs/development/compilers/ghc/7.10.3-binary.nix @@ -65,6 +65,7 @@ stdenv.mkDerivation rec { # Some scripts used during the build need to have their shebangs patched '' patchShebangs ghc-${version}/utils/ + patchShebangs ghc-${version}/configure '' + # Strip is harmful, see also below. It's important that this happens