summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorAndres Löh <mail@andres-loeh.de>2011-08-09 11:18:31 +0000
committerAndres Löh <mail@andres-loeh.de>2011-08-09 11:18:31 +0000
commita14d2601031bc10ed8154dfa5fac30fb270a6472 (patch)
tree2bafa63caadb8a295b6d039c43ad16f2a8fe0c46 /pkgs
parentec5a87c11dfb75e7b11e27815d3644bf136c154c (diff)
downloadnixpkgs-a14d2601031bc10ed8154dfa5fac30fb270a6472.tar
nixpkgs-a14d2601031bc10ed8154dfa5fac30fb270a6472.tar.gz
nixpkgs-a14d2601031bc10ed8154dfa5fac30fb270a6472.tar.bz2
nixpkgs-a14d2601031bc10ed8154dfa5fac30fb270a6472.tar.lz
nixpkgs-a14d2601031bc10ed8154dfa5fac30fb270a6472.tar.xz
nixpkgs-a14d2601031bc10ed8154dfa5fac30fb270a6472.tar.zst
nixpkgs-a14d2601031bc10ed8154dfa5fac30fb270a6472.zip
Build profiling versions of ghc-7.0.4 libraries.
svn path=/nixpkgs/trunk/; revision=28422
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/top-level/all-packages.nix37
1 files changed, 24 insertions, 13 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index d04c436d0d9..fdce42bd77b 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2061,10 +2061,12 @@ let
 
   # Helper functions to abstract away from repetitive instantiations.
   haskellPackagesFun =
-    ghcPath : ghcBinary : prefFun : profDefault : modifyPrio :
+    ghcPath : ghcBinary : prefFun : profExplicit : profDefault : modifyPrio :
       import ./haskell-packages.nix {
         inherit pkgs newScope modifyPrio prefFun;
-        enableLibraryProfiling = getConfig [ "cabal" "libraryProfiling" ] profDefault;
+        enableLibraryProfiling =
+          if profExplicit then profDefault
+                          else getConfig [ "cabal" "libraryProfiling" ] profDefault;
         ghc = callPackage ghcPath { ghc = ghcBinary; };
       };
 
@@ -2072,51 +2074,60 @@ let
   haskellPackages_ghc6104 =
     recurseIntoAttrs
       (haskellPackagesFun ../development/compilers/ghc/6.10.4.nix
-        ghc6101Binary (x : x.ghc6104Prefs) false (x : x));
+        ghc6101Binary (x : x.ghc6104Prefs) false false (x : x));
 
   haskellPackages_ghc6121 =
     haskellPackagesFun ../development/compilers/ghc/6.12.1.nix
-      ghc6101Binary (x : x.ghc6121Prefs) false (x : x);
+      ghc6101Binary (x : x.ghc6121Prefs) false false (x : x);
 
   haskellPackages_ghc6122 =
     haskellPackagesFun ../development/compilers/ghc/6.12.2.nix
-      ghc6101Binary (x : x.ghc6122Prefs) false (x : x);
+      ghc6101Binary (x : x.ghc6122Prefs) false false (x : x);
 
   haskellPackages_ghc6123 =
     recurseIntoAttrs
       (haskellPackagesFun ../development/compilers/ghc/6.12.3.nix
-        ghc6101Binary (x : x.ghc6123Prefs) false (x : x));
+        ghc6101Binary (x : x.ghc6123Prefs) false false (x : x));
 
   # Will never make it into a platform release, severe bugs; leave at lowPrio.
   haskellPackages_ghc701 =
     haskellPackagesFun ../development/compilers/ghc/7.0.1.nix
-      ghc6101Binary (x : x.ghc701Prefs) false lowPrio;
+      ghc6101Binary (x : x.ghc701Prefs) false false lowPrio;
 
   haskellPackages_ghc702 =
     haskellPackagesFun ../development/compilers/ghc/7.0.2.nix
-      ghc6101Binary (x : x.ghc702Prefs) false (x : x);
+      ghc6101Binary (x : x.ghc702Prefs) false false (x : x);
 
   haskellPackages_ghc703 =
     haskellPackagesFun ../development/compilers/ghc/7.0.3.nix
-      ghc6101Binary (x : x.ghc703Prefs) false (x : x);
+      ghc6101Binary (x : x.ghc703Prefs) false false (x : x);
 
   # Current default version.
   # Note that the platform isn't officially released for ghc-7.0.4, but
   # it works without problems.
-  haskellPackages_ghc704 =
+  haskellPackages_ghc704_no_profiling =
+    recurseIntoAttrs
+      (haskellPackagesFun ../development/compilers/ghc/7.0.4.nix
+        ghc6101Binary (x : x.ghc704Prefs) true true (x : x));
+
+  haskellPackages_ghc704_profiling =
     recurseIntoAttrs
       (haskellPackagesFun ../development/compilers/ghc/7.0.4.nix
-        ghc6101Binary (x : x.ghc704Prefs) false (x : x));
+        ghc6101Binary (x : x.ghc704Prefs) true false (x : x));
+
+  haskellPackages_ghc704 =
+    haskellPackagesFun ../development/compilers/ghc/7.0.4.nix
+      ghc6101Binary (x : x.ghc704Prefs) false false (x : x);
 
   # Still a release candidate.
   haskellPackages_ghc721 =
     recurseIntoAttrs
       (haskellPackagesFun ../development/compilers/ghc/7.2.1.nix
-        ghc6121Binary (x : x.ghc721Prefs) false lowPrio);
+        ghc6121Binary (x : x.ghc721Prefs) false false lowPrio);
 
   haskellPackages_ghcHEAD =
     haskellPackagesFun ../development/compilers/ghc/head.nix
-      ghc6121Binary (x : x.ghcHEADPrefs) false lowPrio;
+      ghc6121Binary (x : x.ghcHEADPrefs) false false lowPrio;
 
   haxeDist = import ../development/compilers/haxe {
     inherit fetchurl sourceFromHead stdenv lib ocaml zlib makeWrapper neko;