git.iko.soy/typeable/nixpkgs
on master help sign in
Update default Haskell compiler from GHC 7.8.3 to 7.8.4.
commit157e63c6e6d7f9021eebc604370888642e05c84d authorPeter Simons <simons@cryp.to> dateTue 23 Dec 2014, 22:49 (12 years ago) parent6a236b2
3 files changed+8−60
pkgs/development/compilers/ghc/7.8.3.nix−44 pkgs/top-level/all-packages.nix+5−6 pkgs/top-level/haskell-defaults.nix+3−10
pkgs/development/compilers/ghc/7.8.3.nixdeleted−44
@@ -1,44 +0,0 @@
1−{ stdenv, fetchurl, ghc, perl, gmp, ncurses }:
2−
3−stdenv.mkDerivation rec {
4− version = "7.8.3";
5− name = "ghc-${version}";
6−
7− src = fetchurl {
8− url = "http://www.haskell.org/ghc/dist/7.8.3/${name}-src.tar.xz";
9− sha256 = "0n5rhwl83yv8qm0zrbaxnyrf8x1i3b6si927518mwfxs96jrdkdh";
10− };
11−
12− buildInputs = [ ghc perl gmp ncurses ];
13−
14− enableParallelBuilding = true;
15−
16− buildMK = ''
17− libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib"
18− libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp}/include"
19− DYNAMIC_BY_DEFAULT = NO
20− '';
21−
22− preConfigure = ''
23− echo "${buildMK}" > mk/build.mk
24− sed -i -e 's|-isysroot /Developer/SDKs/MacOSX10.5.sdk||' configure
25− '' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
26− export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/lib/ghc-${version}"
27− '';
28−
29− # required, because otherwise all symbols from HSffi.o are stripped, and
30− # that in turn causes GHCi to abort
31− stripDebugFlags = [ "-S" "--keep-file-symbols" ];
32−
33− meta = with stdenv.lib; {
34− homepage = "http://haskell.org/ghc";
35− description = "The Glasgow Haskell Compiler";
36− maintainers = [ maintainers.marcweber maintainers.andres maintainers.simons ];
37− inherit (ghc.meta) license;
38− # Filter old "i686-darwin" platform which is unsupported these days.
39− platforms = filter (x: elem x platforms.all) ghc.meta.platforms;
40− # Disable Darwin builds: <https://github.com/NixOS/nixpkgs/issues/2689>.
41− hydraPlatforms = filter (x: !elem x platforms.darwin) meta.platforms;
42− };
43−
44−}
pkgs/top-level/all-packages.nix+5−6
@@ -3352,7 +3352,7 @@ let
33523352 builtins.substring 0 (builtins.stringLength "packages_") name == "packages_"
33533353 ) haskell));
33543354
3355− haskellPackages = haskellPackages_ghc783;
3355+ haskellPackages = haskellPackages_ghc784;
33563356
33573357 haskellPackages_ghc6104 = haskell.packages_ghc6104;
33583358 haskellPackages_ghc6123 = haskell.packages_ghc6123;
@@ -3360,10 +3360,9 @@ let
33603360 haskellPackages_ghc722 = haskell.packages_ghc722;
33613361 haskellPackages_ghc742 = haskell.packages_ghc742;
33623362 haskellPackages_ghc763 = haskell.packages_ghc763;
3363− haskellPackages_ghc783_no_profiling = recurseIntoAttrs haskell.packages_ghc783.noProfiling;
3364− haskellPackages_ghc783_profiling = recurseIntoAttrs haskell.packages_ghc783.profiling;
3365− haskellPackages_ghc783 = recurseIntoAttrs haskell.packages_ghc783.highPrio;
3366− haskellPackages_ghc784 = haskell.packages_ghc784;
3363+ haskellPackages_ghc784_no_profiling = recurseIntoAttrs haskell.packages_ghc784.noProfiling;
3364+ haskellPackages_ghc784_profiling = recurseIntoAttrs haskell.packages_ghc784.profiling;
3365+ haskellPackages_ghc784 = recurseIntoAttrs haskell.packages_ghc784.highPrio;
33673366 haskellPackages_ghcHEAD = haskell.packages_ghcHEAD;
33683367
33693368 haxe = callPackage ../development/compilers/haxe { };
@@ -9313,7 +9312,7 @@ let
93139312
93149313 d4x = callPackage ../applications/misc/d4x { };
93159314
9316− darcs = with haskellPackages_ghc783; callPackage ../applications/version-management/darcs {
9315+ darcs = with haskellPackages_ghc784; callPackage ../applications/version-management/darcs {
93179316 cabal = cabal.override {
93189317 extension = self : super : {
93199318 enableSharedExecutables = false;
pkgs/top-level/haskell-defaults.nix+3−10
@@ -19,7 +19,7 @@
1919 mtl = self.mtl_2_2_1;
2020 };
2121
22− ghc783Prefs = self : super : ghcHEADPrefs self super // {
22+ ghc784Prefs = self : super : ghcHEADPrefs self super // {
2323 cabalInstall_1_20_0_4 = super.cabalInstall_1_20_0_4.override { Cabal = self.Cabal_1_20_0_2; };
2424 codex = super.codex.override { hackageDb = super.hackageDb.override { Cabal = self.Cabal_1_20_0_2; }; };
2525 jailbreakCabal = super.jailbreakCabal.override { Cabal = self.Cabal_1_20_0_2; };
@@ -30,7 +30,7 @@
3030 }; };
3131 };
3232
33− ghc763Prefs = self : super : ghc783Prefs self super // {
33+ ghc763Prefs = self : super : ghc784Prefs self super // {
3434 aeson = self.aeson_0_7_0_4;
3535 ariadne = super.ariadne.override {
3636 haskellNames = self.haskellNames.override {
@@ -226,17 +226,10 @@
226226 };
227227 };
228228
229− packages_ghc783 =
230− packages { ghcPath = ../development/compilers/ghc/7.8.3.nix;
231− ghcBinary = if stdenv.isDarwin then ghc783Binary else ghc742Binary;
232− prefFun = ghc783Prefs;
233− };
234−
235−
236229 packages_ghc784 =
237230 packages { ghcPath = ../development/compilers/ghc/7.8.4.nix;
238231 ghcBinary = if stdenv.isDarwin then ghc783Binary else ghc742Binary;
239− prefFun = ghc783Prefs;
232+ prefFun = ghc784Prefs;
240233 };
241234
242235 packages_ghc763 =