From 8a60ebb81634da9b0e96d84f338236c9832b91cc Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 24 Oct 2016 15:28:08 -0700 Subject: [PATCH] jhc: Use the cc that's in scope when building --- pkgs/development/compilers/jhc/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/compilers/jhc/default.nix b/pkgs/development/compilers/jhc/default.nix index fa8a8c04b823..77e02f3a4103 100644 --- a/pkgs/development/compilers/jhc/default.nix +++ b/pkgs/development/compilers/jhc/default.nix @@ -16,6 +16,11 @@ stdenv.mkDerivation rec { buildInputs = [ perl ghc ]; + preConfigure = '' + configureFlagsArray+=("CC=cc") + configureFlagsArray+=("--with-hsc2hs=${ghc}/bin/hsc2hs --cc=cc") + ''; + meta = { description = "Whole-program, globally optimizing Haskell compiler"; homepage = "http://repetae.net/computer/jhc/";