-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
34 lines (29 loc) · 921 Bytes
/
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
{ sources ? import ./nix/sources.nix
, pkgs ? (import sources."nixpkgs" { overlays = []; config = {}; })
, lib ? pkgs.lib
, callPackage ? pkgs.callPackage
, haskell ? pkgs.haskell
, ghcVersion ? "ghc8104"
, symlinkJoin ? pkgs.symlinkJoin
}:
let
haskellPackageSources = {
chris-martin-org = ./chris-martin-org;
};
haskellPackages = haskell.packages.${ghcVersion}.override (old: {
overrides = lib.fold lib.composeExtensions (old.overrides or (_: _: { }))
[
(self: _: {
rss = dontCheck (self.callPackage ./hackage/rss/3000.2.0.7.nix {});
})
(haskell.lib.packageSourceOverrides haskellPackageSources)
];
});
inherit (haskell.lib) dontCheck;
in
symlinkJoin {
name = "root-chris-martin-org";
paths = [ haskellPackages.chris-martin-org ];
} // {
inherit haskellPackages haskellPackageSources;
}