jhc: Use the cc that's in scope when building
commit8a60ebb81634da9b0e96d84f338236c9832b91cc
authorJohn Wiegley <johnw@newartisans.com>
dateMon 24 Oct 2016, 15:28 (10 years ago)
parentfbc7f75
pkgs/development/compilers/jhc/default.nix+5
@@ -16,6 +16,11 @@ stdenv.mkDerivation rec {
1616
1717 buildInputs = [ perl ghc ];
1818
19+ preConfigure = ''
20+ configureFlagsArray+=("CC=cc")
21+ configureFlagsArray+=("--with-hsc2hs=${ghc}/bin/hsc2hs --cc=cc")
22+ '';
23+
1924 meta = {
2025 description = "Whole-program, globally optimizing Haskell compiler";
2126 homepage = "http://repetae.net/computer/jhc/";