Add combined

This commit is contained in:
Las Safin 2021-09-03 13:31:29 +00:00
parent 84640f3bc1
commit 1fddafc814
No known key found for this signature in database
GPG Key ID: E7FA928911B61ED6
2 changed files with 39 additions and 3 deletions

View File

@ -66,6 +66,7 @@
"equinox" "knik" "ispd" "karakaze" "nimbus"
"metis" "mauka" "solstice" "stratus1"
"documentation" "unittests" "alliance-check-toolkit"
"combined"
];
commonArgs = { inherit version meta generic; alliance-src = alliance-check-toolkit; };
@ -82,9 +83,17 @@
) {});
}) {} components;
packages = forAllSystems (system: builtins.foldl' (acc: elem: acc // {
${elem} = nixpkgsFor.${system}.${"coriolis-${elem}"};
}) {} components);
packages = forAllSystems (system:
let pkgs = nixpkgsFor.${system}; in
builtins.foldl' (acc: elem: acc // {
${elem} = pkgs.${"coriolis-${elem}"};
}) {} components
// {
test = pkgs.python2.buildEnv.override {
extraLibs = [ pkgs.coriolis-unicorn pkgs.coriolis-cumulus ];
};
}
);
defaultPackage = forAllSystems (system: self.packages.${system}.unicorn);

27
nix/combined.nix Normal file
View File

@ -0,0 +1,27 @@
{ version, meta, ... }:
{ buildEnv
, coriolis-vlsisapd, coriolis-hurricane, coriolis-crlcore
, coriolis-anabatic, coriolis-katana, coriolis-bora
, coriolis-katabatic, coriolis-kite, coriolis-tutorial
, coriolis-unicorn, coriolis-oroshi, coriolis-cumulus
, coriolis-lefdef, coriolis-coloquinte, coriolis-flute
, coriolis-equinox, coriolis-knik, coriolis-karakaze
, coriolis-solstice, coriolis-stratus1, coriolis-etesian
}:
buildEnv {
name = "coriolis-combined-${version}";
paths = [
coriolis-hurricane coriolis-crlcore coriolis-flute
coriolis-etesian coriolis-anabatic coriolis-katana
coriolis-bora coriolis-katabatic coriolis-kite
coriolis-tutorial coriolis-unicorn coriolis-oroshi
coriolis-cumulus coriolis-lefdef coriolis-vlsisapd
coriolis-coloquinte coriolis-equinox coriolis-knik
coriolis-karakaze coriolis-solstice coriolis-stratus1
];
inherit meta;
}