pkgsChecked, pkgsParallel, pkgsStructured: init

This commit is contained in:
SandaruKasa
2026-06-15 23:47:38 +03:00
parent b08d3e27c4
commit 9a35a7efd0
2 changed files with 29 additions and 0 deletions
+14
View File
@@ -82,4 +82,18 @@ lib.recurseIntoAttrs {
assert cross.makeWrapper ? __spliced;
assert appended.makeWrapper ? __spliced;
pkgs.emptyFile;
massRebuildVariantComposition =
let
variants = [
"pkgsChecked"
"pkgsParallel"
"pkgsStrict"
"pkgsStructured"
];
all = lib.getAttrFromPath variants pkgs;
all-reversed = lib.getAttrFromPath (lib.reverseList variants) pkgs;
in
assert pkgs.config.allowVariants -> (all.hello == all-reversed.hello);
pkgs.emptyFile;
}
+15
View File
@@ -174,9 +174,24 @@ self: super: {
++ overlays;
};
pkgsChecked = nixpkgsFun {
config = super.config // {
doCheckByDefault = true;
};
};
pkgsParallel = nixpkgsFun {
config = super.config // {
enableParallelBuildingByDefault = true;
};
};
pkgsStrict = nixpkgsFun {
config = super.config // {
strictDepsByDefault = true;
};
};
pkgsStructured = nixpkgsFun {
config = super.config // {
structuredAttrsByDefault = true;
};
};
}