-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathoverrides.nix
47 lines (37 loc) · 1.24 KB
/
overrides.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
{ pkgs }:
self: super:
with { inherit (pkgs.stdenv) lib; };
with pkgs.haskell.lib;
{
smallcheck-lens = doJailbreak super.smallcheck-lens;
tasty-lens = doJailbreak super.tasty-lens;
loc = doJailbreak super.loc;
loc-test = doJailbreak super.loc-test;
judy = super.judy.override { Judy = pkgs.judy; };
disjoint-containers = dontCheck super.disjoint-containers;
crackNum = super.crackNum_2_0;
impure-containers = (
appendPatch super.impure-containers ./patches/impure-containers.patch);
sbv = (
with rec {
sbvSource = pkgs.fetchFromGitHub {
owner = "LeventErkok";
repo = "sbv";
rev = "4576ba8b91c945c7b9c82f5f6c9c171a85b178b9";
sha256 = "1s1bag1zg3fg2agfjmniy1hhvxwigmgmbzyzqpnbprvlm4cr3i1p";
};
unpatchedSBV = self.callCabal2nix "sbv" sbvSource {};
};
dontCheck (appendPatch unpatchedSBV ./patches/sbv.patch));
eqsat = (
with rec {
eqsatSource = pkgs.lib.cleanSource ../.;
eqsatBasic = self.callCabal2nix "eqsat" eqsatSource {};
};
overrideCabal eqsatBasic (old: {
preConfigure = (old.preConfigure or "") + ''
echo "#define SMT_Z3_PATH \"${pkgs.z3}/bin/z3\"" \
> library/EqSat/Internal/SBVDefines.hs
'';
}));
}