about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-7.9.x.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2015-01-07 20:31:32 +0100
committerPeter Simons <simons@cryp.to>2015-01-07 23:45:21 +0100
commit54baa53df1e2e43f686a54b2ac1b8408d0b26742 (patch)
tree16c0138ea16788bcf3e23b464b184cfd686f71eb /pkgs/development/haskell-modules/configuration-ghc-7.9.x.nix
parent82b55b9c7881c28e3aadb87bbff870eff4e0776a (diff)
downloadnixlib-54baa53df1e2e43f686a54b2ac1b8408d0b26742.tar
nixlib-54baa53df1e2e43f686a54b2ac1b8408d0b26742.tar.gz
nixlib-54baa53df1e2e43f686a54b2ac1b8408d0b26742.tar.bz2
nixlib-54baa53df1e2e43f686a54b2ac1b8408d0b26742.tar.lz
nixlib-54baa53df1e2e43f686a54b2ac1b8408d0b26742.tar.xz
nixlib-54baa53df1e2e43f686a54b2ac1b8408d0b26742.tar.zst
nixlib-54baa53df1e2e43f686a54b2ac1b8408d0b26742.zip
Say hello to our brand-new Haskell infrastructure.
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-7.9.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-7.9.x.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-7.9.x.nix b/pkgs/development/haskell-modules/configuration-ghc-7.9.x.nix
new file mode 100644
index 000000000000..671bd87ba078
--- /dev/null
+++ b/pkgs/development/haskell-modules/configuration-ghc-7.9.x.nix
@@ -0,0 +1,41 @@
+{ pkgs }:
+
+with import ./lib.nix;
+
+self: super: {
+
+  # Disable GHC 7.9.x core libraries.
+  array = null;
+  base = null;
+  binary = null;
+  bin-package-db = null;
+  bytestring = null;
+  Cabal = null;
+  containers = null;
+  deepseq = null;
+  directory = null;
+  filepath = null;
+  ghc-prim = null;
+  haskeline = null;
+  hoopl = null;
+  hpc = null;
+  integer-gmp = null;
+  pretty = null;
+  process = null;
+  rts = null;
+  template-haskell = null;
+  terminfo = null;
+  time = null;
+  transformers = null;
+  unix = null;
+  xhtml = null;
+
+  # haddock: internal error: expectJust getPackageDetails
+  mkDerivation = drv: super.mkDerivation (drv // { noHaddock = true; });
+
+  # Setup: At least the following dependencies are missing: base <4.8
+  hspec-expectations = overrideCabal super.hspec-expectations (drv: {
+    patchPhase = "sed -i -e 's|base < 4.8|base|' hspec-expectations.cabal";
+  });
+
+}