allow some packages to be built
This commit is contained in:
parent
891b708e9c
commit
db23172c09
1 changed files with 15 additions and 2 deletions
17
default.nix
17
default.nix
|
@ -47,10 +47,10 @@
|
||||||
];
|
];
|
||||||
config.contentAddressedByDefault = true;
|
config.contentAddressedByDefault = true;
|
||||||
};
|
};
|
||||||
pkgsFor = localSystem: args:
|
pkgsFor = system: args:
|
||||||
import nixpkgs (args
|
import nixpkgs (args
|
||||||
// {
|
// {
|
||||||
inherit localSystem;
|
localSystem = localSystems.${system};
|
||||||
overlays = [
|
overlays = [
|
||||||
(_: _: {
|
(_: _: {
|
||||||
nixpkgs-unpatched = nixpkgs-unpatched';
|
nixpkgs-unpatched = nixpkgs-unpatched';
|
||||||
|
@ -58,7 +58,20 @@
|
||||||
(import ./overlay.nix)
|
(import ./overlay.nix)
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
keepBuilt = system: let
|
||||||
|
pkgs = pkgsFor system {};
|
||||||
|
in {
|
||||||
|
inherit (pkgs) nixos-rebuild;
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
inherit (pkgs-unpatched) nixpkgs;
|
inherit (pkgs-unpatched) nixpkgs;
|
||||||
inherit pkgsFor;
|
inherit pkgsFor;
|
||||||
|
x86_64-linux = keepBuilt "x86_64-linux";
|
||||||
|
aarch64-linux = keepBuilt "aarch64-linux";
|
||||||
|
default = keepBuilt "default";
|
||||||
|
skylake = keepBuilt "skylake";
|
||||||
|
skylake-avx512 = keepBuilt "skylake-avx512";
|
||||||
|
neoverse-n1 = keepBuilt "neoverse-n1";
|
||||||
|
znver1 = keepBuilt "znver1";
|
||||||
|
znver2 = keepBuilt "znver2";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue