-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
49 lines (45 loc) · 1.34 KB
/
default.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
41
42
43
44
45
46
47
48
49
# Override Haskell package for a specific compiler version and optionally
# for the integer-simple variant
{ compiler, integer-simple }:
self: super:
let
lib =
self.haskell.lib;
unbreak =
drv:
lib.overrideCabal drv (drv: { broken = false; });
overrides =
final: prev:
{
hasql-pool = lib.dontCheck (unbreak prev.hasql-pool);
configurator-pg = prev.callPackage ./configurator-pg.nix {};
postgrest = lib.dontCheck (prev.callPackage ./postgrest.nix {});
swagger2 = prev.callPackage ./swagger2.nix {};
insert-ordered-containers = prev.callPackage ./insert-ordered-containers.nix {};
# Tests take forever to run on static builds.
happy = lib.dontCheck prev.happy;
};
in
{
haskell =
super.haskell // {
packages =
super.haskell.packages // (
if integer-simple
then
{
integer-simple =
super.haskell.packages.integer-simple // {
"${compiler}" =
super.haskell.packages.integer-simple."${compiler}".override
{ inherit overrides; };
};
}
else
{
"${compiler}" = super.haskell.packages."${compiler}".override
{ inherit overrides; };
}
);
};
}