flake.nix: Factor pkgs.nix_noTests out of buildNoTests

This is useful when iterating on the functional tests when trying
to run them in a VM test, for example.
This commit is contained in:
Robert Hensing 2024-06-16 12:22:42 +02:00
parent 1c131ec2b7
commit dc720f89f2
2 changed files with 7 additions and 7 deletions

View File

@ -227,6 +227,12 @@
;
};
nix_noTests = final.nix.override {
doCheck = false;
doInstallCheck = false;
installUnitTests = false;
};
# See https://github.com/NixOS/nixpkgs/pull/214409
# Remove when fixed in this flake's nixpkgs
pre-commit =

View File

@ -58,13 +58,7 @@ in
self.packages.${system}.nix.override { enableGC = false; }
);
buildNoTests = forAllSystems (system:
self.packages.${system}.nix.override {
doCheck = false;
doInstallCheck = false;
installUnitTests = false;
}
);
buildNoTests = forAllSystems (system: nixpkgsFor.${system}.native.nix_noTests);
# Toggles some settings for better coverage. Windows needs these
# library combinations, and Debian build Nix with GNU readline too.