-
Notifications
You must be signed in to change notification settings - Fork 2
/
ghc.nix
40 lines (36 loc) · 1.1 KB
/
ghc.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
let
# Note: below would also work if called via Bazel/rules_nix. But to avoid
# chance of instantiating manually with the unpinned nixpkgs, we specify
# explicitly.
#
# pkgs = import <nixpkgs> {};
pkgs = (import ./default.nix).pkgs;
# See https://github.com/bgamari/nixpkgs/commit/cdf1a522cacfb209e340af9d51c2ac4dd84e7124
markUnbroken = drv: pkgs.haskell.lib.overrideCabal drv (drv: { broken = false; });
haskellPackages = pkgs.haskellPackages.override (old: {
overrides =
with pkgs;
lib.composeExtensions (old.overrides or (_: _: {})) (self: super: {
# To just mark unbroken.
#whatever = markUnbroken (haskell.lib.doJailbreak super.whatever);
# To disable tests, with marking unbroken as well.
#foobar = markUnbroken (haskell.lib.dontCheck super.foobar);
});
});
in haskellPackages.ghcWithPackages (p: with p; [
# Shipped with GHC
base-unicode-symbols
clock
# Others
attoparsec
conduit
hedgehog
optparse-applicative
protolude
tasty
tasty-hedgehog
vector
xml-conduit
xml-types
# tons of other packages here
])