diff options
author | Peter Simons <simons@cryp.to> | 2015-01-14 11:20:48 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2015-01-14 11:24:59 +0100 |
commit | a8076c76549a3f3db78ef6c839aec449636fe2e3 (patch) | |
tree | da301da83ac491a442ed0356a75a19e0f196f591 | |
parent | a92afcd34a9e1535083a7b97fd8a5ceb6c04287c (diff) |
ghc: propagate 'gmp' and 'ncurses' to ensure users can link the 'haskeline' library, etc.
Fixes https://github.com/NixOS/nixpkgs/issues/5616.
19 files changed, 37 insertions, 23 deletions
diff --git a/pkgs/development/compilers/ghc/6.12.1.nix b/pkgs/development/compilers/ghc/6.12.1.nix index 66b277dc37668..4014b6fe90cea 100644 --- a/pkgs/development/compilers/ghc/6.12.1.nix +++ b/pkgs/development/compilers/ghc/6.12.1.nix @@ -10,7 +10,8 @@ stdenv.mkDerivation rec { sha256 = "0ajm4sypk4zgjp0m6i03fadyv5dm9vlqfnvsx1g94yk7vnd9zyfd"; }; - buildInputs = [ghc perl gmp ncurses]; + buildInputs = [ ghc perl ]; + propagatedBuildInputs = [ gmp ncurses ]; buildMK = '' libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib" diff --git a/pkgs/development/compilers/ghc/6.12.2.nix b/pkgs/development/compilers/ghc/6.12.2.nix index a7252a7931df4..993f2fa3db5fa 100644 --- a/pkgs/development/compilers/ghc/6.12.2.nix +++ b/pkgs/development/compilers/ghc/6.12.2.nix @@ -10,7 +10,8 @@ stdenv.mkDerivation rec { sha256 = "7f1e39f0b3ddaca35b55cd430ca058d1c4678445a7177391c9cb6342b7c41a30"; }; - buildInputs = [ghc perl gmp ncurses]; + buildInputs = [ ghc perl ]; + propagatedBuildInputs = [ gmp ncurses ]; buildMK = '' libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib" diff --git a/pkgs/development/compilers/ghc/6.12.3.nix b/pkgs/development/compilers/ghc/6.12.3.nix index a1cc16e1f9e66..ca5fcbd7c5f06 100644 --- a/pkgs/development/compilers/ghc/6.12.3.nix +++ b/pkgs/development/compilers/ghc/6.12.3.nix @@ -10,7 +10,8 @@ stdenv.mkDerivation rec { sha256 = "0s2y1sv2nq1cgliv735q2w3gg4ykv1c0g1adbv8wgwhia10vxgbc"; }; - buildInputs = [ghc perl gmp ncurses]; + buildInputs = [ ghc perl ]; + propagatedBuildInputs = [ gmp ncurses ]; buildMK = '' libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib" diff --git a/pkgs/development/compilers/ghc/7.0.1.nix b/pkgs/development/compilers/ghc/7.0.1.nix index 3f992bb16ff96..aff5f1a0b25a0 100644 --- a/pkgs/development/compilers/ghc/7.0.1.nix +++ b/pkgs/development/compilers/ghc/7.0.1.nix @@ -10,7 +10,8 @@ stdenv.mkDerivation rec { sha256 = "1iciljngxmqy465cw3pkl6jp0ydiils4bfz6ixfaxk7aqv7r7xsi"; }; - buildInputs = [ghc perl gmp ncurses]; + buildInputs = [ ghc perl ]; + propagatedBuildInputs = [ gmp ncurses ]; buildMK = '' libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib" diff --git a/pkgs/development/compilers/ghc/7.0.2.nix b/pkgs/development/compilers/ghc/7.0.2.nix index 3fb982e2a710a..701f2128c82cd 100644 --- a/pkgs/development/compilers/ghc/7.0.2.nix +++ b/pkgs/development/compilers/ghc/7.0.2.nix @@ -9,7 +9,8 @@ stdenv.mkDerivation rec { sha256 = "f0551f1af2f008a8a14a888b70c0557e00dd04f9ae309ac91897306cd04a6668"; }; - buildInputs = [ ghc perl gmp ncurses ]; + buildInputs = [ ghc perl ]; + propagatedBuildInputs = [ gmp ncurses ]; buildMK = '' libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib" diff --git a/pkgs/development/compilers/ghc/7.0.3.nix b/pkgs/development/compilers/ghc/7.0.3.nix index b204075137065..5af322bbad56c 100644 --- a/pkgs/development/compilers/ghc/7.0.3.nix +++ b/pkgs/development/compilers/ghc/7.0.3.nix @@ -9,7 +9,8 @@ stdenv.mkDerivation rec { sha256 = "1nfc2c6bdcdfg3f3d9q5v109jrrwhz6by3qa4qi7k0xbip16jq8m"; }; - buildInputs = [ ghc perl gmp ncurses ]; + buildInputs = [ ghc perl ]; + propagatedBuildInputs = [ gmp ncurses ]; buildMK = '' libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib" diff --git a/pkgs/development/compilers/ghc/7.0.4.nix b/pkgs/development/compilers/ghc/7.0.4.nix index bcce5ec03aefe..34e8748dab112 100644 --- a/pkgs/development/compilers/ghc/7.0.4.nix +++ b/pkgs/development/compilers/ghc/7.0.4.nix @@ -9,7 +9,8 @@ stdenv.mkDerivation rec { sha256 = "1a9b78d9d66c9c21de6c0932e36bb87406a4856f1611bf83bd44539bdc6ed0ed"; }; - buildInputs = [ ghc perl gmp ncurses ]; + buildInputs = [ ghc perl ]; + propagatedBuildInputs = [ gmp ncurses ]; buildMK = '' libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib" diff --git a/pkgs/development/compilers/ghc/7.2.1.nix b/pkgs/development/compilers/ghc/7.2.1.nix index 5a3af0f6492d8..70a08a4867f5d 100644 --- a/pkgs/development/compilers/ghc/7.2.1.nix +++ b/pkgs/development/compilers/ghc/7.2.1.nix @@ -9,7 +9,8 @@ stdenv.mkDerivation rec { sha256 = "099w2bvx07jq4b1k8f1hspri30wbk35dz6ilsivxr2xg661c2qjm"; }; - buildInputs = [ ghc perl gmp ncurses ]; + buildInputs = [ ghc perl ]; + propagatedBuildInputs = [ gmp ncurses ]; buildMK = '' libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib" diff --git a/pkgs/development/compilers/ghc/7.2.2.nix b/pkgs/development/compilers/ghc/7.2.2.nix index 51d94af405165..abfcc5d166c9b 100644 --- a/pkgs/development/compilers/ghc/7.2.2.nix +++ b/pkgs/development/compilers/ghc/7.2.2.nix @@ -9,7 +9,8 @@ stdenv.mkDerivation rec { sha256 = "0g87d3z9275dniaqzkf56qfgzp1msd89nqqhhm2gkc6iga072spz"; }; - buildInputs = [ ghc perl gmp ncurses ]; + buildInputs = [ ghc perl ]; + propagatedBuildInputs = [ gmp ncurses ]; buildMK = '' libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib" diff --git a/pkgs/development/compilers/ghc/7.4.1.nix b/pkgs/development/compilers/ghc/7.4.1.nix index f666299c5b05d..01e5e99a99dc4 100644 --- a/pkgs/development/compilers/ghc/7.4.1.nix +++ b/pkgs/development/compilers/ghc/7.4.1.nix @@ -9,7 +9,8 @@ stdenv.mkDerivation rec { sha256 = "0ycscsagyy9n796a59q6761s6ar50d8inibvnrcp96siksj0j73j"; }; - buildInputs = [ ghc perl gmp ncurses ]; + buildInputs = [ ghc perl ]; + propagatedBuildInputs = [ gmp ncurses ]; buildMK = '' libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib" diff --git a/pkgs/development/compilers/ghc/7.4.2.nix b/pkgs/development/compilers/ghc/7.4.2.nix index 2f577f12bc460..654df2c22f72c 100644 --- a/pkgs/development/compilers/ghc/7.4.2.nix +++ b/pkgs/development/compilers/ghc/7.4.2.nix @@ -10,8 +10,8 @@ stdenv.mkDerivation rec { sha256 = "0vc3zmxqi4gflssmj35n5c8idbvyrhd88abi50whbirwlf4i5vpj"; }; - buildInputs = [ ghc perl gmp ncurses ]; - + buildInputs = [ ghc perl ]; + propagatedBuildInputs = [ gmp ncurses ]; buildMK = '' libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib" diff --git a/pkgs/development/compilers/ghc/7.6.1.nix b/pkgs/development/compilers/ghc/7.6.1.nix index 8f1a695196699..86caf7d0baaf3 100644 --- a/pkgs/development/compilers/ghc/7.6.1.nix +++ b/pkgs/development/compilers/ghc/7.6.1.nix @@ -10,7 +10,8 @@ stdenv.mkDerivation rec { sha256 = "1q5rqp8z90mq6ysf7h28zkbhfaxlrpva2qy0wnkr43d7214dzp7i"; }; - buildInputs = [ ghc perl gmp ncurses ]; + buildInputs = [ ghc perl ]; + propagatedBuildInputs = [ gmp ncurses ]; buildMK = '' libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib" diff --git a/pkgs/development/compilers/ghc/7.6.2.nix b/pkgs/development/compilers/ghc/7.6.2.nix index d2ea2ebce0538..42572aa13c989 100644 --- a/pkgs/development/compilers/ghc/7.6.2.nix +++ b/pkgs/development/compilers/ghc/7.6.2.nix @@ -10,8 +10,8 @@ stdenv.mkDerivation rec { sha256 = "d5f45184abeacf7e9c6b4f63c7101a5c1d7b4fe9007901159e2287ecf38de533"; }; - buildInputs = [ ghc perl gmp ncurses ]; - + buildInputs = [ ghc perl ]; + propagatedBuildInputs = [ gmp ncurses ]; buildMK = '' libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib" diff --git a/pkgs/development/compilers/ghc/7.6.3.nix b/pkgs/development/compilers/ghc/7.6.3.nix index 9866ea38e86af..5e4ac83b2c356 100644 --- a/pkgs/development/compilers/ghc/7.6.3.nix +++ b/pkgs/development/compilers/ghc/7.6.3.nix @@ -17,7 +17,8 @@ in stdenv.mkDerivation rec { sha256 = "1669m8k9q72rpd2mzs0bh2q6lcwqiwd1ax3vrard1dgn64yq4hxx"; }; - buildInputs = [ ghc perl gmp ncurses ]; + buildInputs = [ ghc perl ]; + propagatedBuildInputs = [ gmp ncurses ]; buildMK = '' libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib" diff --git a/pkgs/development/compilers/ghc/7.8.4.nix b/pkgs/development/compilers/ghc/7.8.4.nix index ccc3f4c875ba5..bc7fbe96f31a8 100644 --- a/pkgs/development/compilers/ghc/7.8.4.nix +++ b/pkgs/development/compilers/ghc/7.8.4.nix @@ -9,7 +9,8 @@ stdenv.mkDerivation rec { sha256 = "1i4254akbb4ym437rf469gc0m40bxm31blp6s1z1g15jmnacs6f3"; }; - buildInputs = [ ghc perl gmp ncurses ]; + buildInputs = [ ghc perl ]; + propagatedBuildInputs = [ gmp ncurses ]; enableParallelBuilding = true; diff --git a/pkgs/development/compilers/ghc/head.nix b/pkgs/development/compilers/ghc/head.nix index c79cdfbe34236..8b1068c096b25 100644 --- a/pkgs/development/compilers/ghc/head.nix +++ b/pkgs/development/compilers/ghc/head.nix @@ -9,7 +9,8 @@ stdenv.mkDerivation rec { sha256 = "0nncvvwksqqz1d991jbag3b4174i275nn0psadriq5hi3px11dkl"; }; - buildInputs = [ ghc perl ncurses happy alex ]; + buildInputs = [ ghc perl happy alex ]; + propagatedBuildInputs = [ gmp ncurses ]; preConfigure = '' echo >mk/build.mk "DYNAMIC_BY_DEFAULT = NO" diff --git a/pkgs/development/haskell-modules/configuration-ghc-7.6.x.nix b/pkgs/development/haskell-modules/configuration-ghc-7.6.x.nix index 55d2395cdcb00..68f2a0a31ba56 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-7.6.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-7.6.x.nix @@ -16,7 +16,7 @@ self: super: { directory = null; filepath = null; ghc-prim = null; - haskeline = self.haskeline_0_7_1_3; # GHC's version is broken: https://github.com/NixOS/nixpkgs/issues/5616. + haskeline = null; haskell2010 = null; haskell98 = null; hoopl = null; @@ -28,7 +28,7 @@ self: super: { process = null; rts = null; template-haskell = null; - terminfo = self.terminfo_0_4_0_0; # GHC's version is broken: https://github.com/NixOS/nixpkgs/issues/5616. + terminfo = null; time = null; unix = null; diff --git a/pkgs/development/haskell-modules/configuration-ghc-7.8.x.nix b/pkgs/development/haskell-modules/configuration-ghc-7.8.x.nix index 63e49196580fd..6832f00a75ab7 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-7.8.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-7.8.x.nix @@ -16,7 +16,7 @@ self: super: { directory = null; filepath = null; ghc-prim = null; - haskeline = self.haskeline_0_7_1_3; # GHC's version is broken: https://github.com/NixOS/nixpkgs/issues/5616. + haskeline = null; haskell2010 = null; haskell98 = null; hoopl = null; @@ -28,7 +28,7 @@ self: super: { process = null; rts = null; template-haskell = null; - terminfo = self.terminfo_0_4_0_0; # GHC's version is broken: https://github.com/NixOS/nixpkgs/issues/5616. + terminfo = null; time = null; transformers = null; unix = null; diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index 7290bb947e15b..2becdcef5a5df 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -129,7 +129,7 @@ stdenv.mkDerivation ({ mkdir -p $packageConfDir local inputClosure="" - for i in $propagatedNativeBuildInputs $nativeBuildInputs; do + for i in $propagatedNativeBuildInputs $nativeBuildInputs ${ghc}; do findInputs $i inputClosure propagated-native-build-inputs done for p in $inputClosure; do |