nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ pkgs, haskellLib }:
2
3self: super:
4
5let
6 inherit (pkgs) lib;
7
8 warnAfterVersion =
9 ver: pkg:
10 lib.warnIf (lib.versionOlder ver
11 super.${pkg.pname}.version
12 ) "override for haskell.packages.ghc912.${pkg.pname} may no longer be needed" pkg;
13
14in
15
16with haskellLib;
17
18{
19 # Disable GHC core libraries
20 array = null;
21 base = null;
22 binary = null;
23 bytestring = null;
24 Cabal = null;
25 Cabal-syntax = null;
26 containers = null;
27 deepseq = null;
28 directory = null;
29 exceptions = null;
30 file-io = null;
31 filepath = null;
32 ghc-bignum = null;
33 ghc-boot = null;
34 ghc-boot-th = null;
35 ghc-compact = null;
36 ghc-experimental = null;
37 ghc-heap = null;
38 ghc-internal = null;
39 ghc-platform = null;
40 ghc-prim = null;
41 ghc-toolchain = null;
42 ghci = null;
43 haddock-api = null;
44 haddock-library = null;
45 haskeline = null;
46 hpc = null;
47 integer-gmp = null;
48 mtl = null;
49 os-string = null;
50 parsec = null;
51 pretty = null;
52 process = null;
53 rts = null;
54 semaphore-compat = null;
55 stm = null;
56 system-cxx-std-lib = null;
57 template-haskell = null;
58 template-haskell-lift = null;
59 template-haskell-quasiquoter = null;
60 # GHC only builds terminfo if it is a native compiler
61 terminfo =
62 if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then
63 null
64 else
65 haskellLib.doDistribute self.terminfo_0_4_1_7;
66 text = null;
67 time = null;
68 transformers = null;
69 unix = null;
70 xhtml = null;
71 Win32 = null;
72
73 #
74 # Version upgrades
75 #
76
77 #
78 # Jailbreaks
79 #
80
81 primitive = doJailbreak (dontCheck super.primitive); # base <4.22 and a lot of dependencies on packages not yet working.
82 splitmix = doJailbreak super.splitmix; # base <4.22
83
84 # https://github.com/sjakobi/newtype-generics/pull/28/files
85 newtype-generics = warnAfterVersion "0.6.2" (doJailbreak super.newtype-generics);
86
87 #
88 # Test suite issues
89 #
90}