-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
41 lines (39 loc) · 1.32 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
{ source-overrides ? {} }:
let
sources = import nix/sources.nix // source-overrides;
newpkgs = import sources.nixpkgs {
overlays = [
(import gf/overlay.nix { inherit sources; })
(
nixpkgs: pkgssuper: {
# inherit (import ./gf-core.nix {inherit nixpkgs sources; }) gf;
gf = pkgssuper.haskell.lib.justStaticExecutables (nixpkgs.haskellPackages.gf-core);
# gf-rgl = import ./build-gf-rgl.nix {inherit nixpkgs ; };
gf-rgl = nixpkgs.callPackage ./gf-rgl.nix { inherit sources; };
gf-wordnet = nixpkgs.callPackage ./gf-wordnet.nix { src = sources.gf-wordnet; };
bnfc = pkgssuper.haskell.lib.justStaticExecutables (
nixpkgs.haskellPackages.callCabal2nix "bnfc" (sources.bnfc + "/source") {}
);
gf-with-rgl = nixpkgs.callPackage ./gf-with-rgl.nix {};
}
)
];
};
in
{
# inherit (newpkgs) gf gf-rgl bnfc gf-pgf gf-with-rgl gf-wordnet;
cclawStuff = newpkgs.recurseIntoAttrs {
inherit (newpkgs) bnfc gf-pgf gf-with-rgl gf-wordnet;
};
pkgs = newpkgs.dontRecurseIntoAttrs newpkgs;
inherit sources;
}
# # Todo: use some better overlay pattern instead
# let
# inherit (import ./install-bnfc.nix {}) gf;
# in
# {
# gf-rgl = import ./build-gf-rgl.nix {};
# bnfc = import ./install-bnfc.nix {};
# inherit gf;
# }