pkgsChecked, pkgsParallel, pkgsStructured: init

This commit is contained in:
SandaruKasa 2026-06-15 03:37:23 +03:00
commit 9a35a7efd0
2 changed files with 29 additions and 0 deletions

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;
}

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;
};
};
}