allow some packages to be built

This commit is contained in:
Charlotte 🦝 Delenk 2023-06-03 10:41:41 +01:00
parent 891b708e9c
commit db23172c09
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -47,10 +47,10 @@
];
config.contentAddressedByDefault = true;
};
pkgsFor = localSystem: args:
pkgsFor = system: args:
import nixpkgs (args
// {
inherit localSystem;
localSystem = localSystems.${system};
overlays = [
(_: _: {
nixpkgs-unpatched = nixpkgs-unpatched';
@ -58,7 +58,20 @@
(import ./overlay.nix)
];
});
keepBuilt = system: let
pkgs = pkgsFor system {};
in {
inherit (pkgs) nixos-rebuild;
};
in {
inherit (pkgs-unpatched) nixpkgs;
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";
}