-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
45 lines (39 loc) · 1.14 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
{ nixpkgs ? ./pkgs.nix }:
with builtins;
let
haskellOverlay = self: super: {
haskell = super.haskell // {
lib = super.haskell.lib // {
docsFor = hp: pname: ((rec {
ghcName = "${hp.ghc.system}-${hp.ghc.name}";
package = hp.${pname};
result = toPath "${package}/share/doc/${ghcName}/${package.name}/";
}).result);
};
};
haskellPackages = with self.haskell.lib; super.haskellPackages.override {
overrides = self: super: {
mighttpd2 = super.mighttpd2.overrideScope (self: super: {
http-client_0_5_5 = super.http-client;
http-client-tls_0_3_3_1 = super.http-client-tls;
http-conduit_2_2_3 = super.http-conduit;
});
};
};
};
customOverlay = self: super: {
arcanum = {
combined = self.callPackage ./combined.nix {};
client = self.qt56.callPackage ./client.nix {};
server = self.callPackage ./server.nix {};
tests = self.callPackage ./test.nix {};
};
};
args = {
overlays = [ haskellOverlay customOverlay ];
};
pkgs = import nixpkgs args;
in {
inherit pkgs;
inherit (pkgs) arcanum;
}