forked from nlewo/nixpkgs-contrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
40 lines (36 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
{ fetched ? import ./nixpkgs-fetch.nix {}
, nixpkgs ? fetched.pkgs
}:
let
pkgs = import nixpkgs {};
allPackages = import ./all-packages.nix {inherit pkgs nixpkgs;};
contrail32Pkgs =
let f = self: super: {
contrailVersion = self.contrail32;
sources = super.sources32;
thirdPartyCache = super.thirdPartyCache.overrideAttrs(oldAttrs:
{ outputHash = "1rvj0dkaw4jbgmr5rkdw02s1krw1307220iwmf2j0p0485p7d3h2"; });
};
in pkgs.lib.fix (pkgs.lib.extends f allPackages);
contrailPkgs = pkgs.lib.fix allPackages;
contrail32PythonPackages = with contrail32Pkgs; { inherit vnc_api cfgm_common; };
in {
contrail32 = with contrail32Pkgs; {
inherit configUtils api discovery schemaTransformer svcMonitor
control
vrouterAgent vrouterUtils vrouterNetns vrouterPortControl
collector analyticsApi queryEngine
# webCore webController
test
vms;
} // { pythonPackages = contrail32PythonPackages; };
# contrailMaster = with contrailPkgs; {
# inherit configUtils api svcMonitor schemaTransformer
# control
# vrouterAgent vrouterUtils vrouterNetns vrouterPortControl
# collector analyticsApi
# test;
# };
# We have to find a better way to let tools independant of contrail
tools = contrail32Pkgs.tools;
}