mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
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:
parent
1c131ec2b7
commit
dc720f89f2
2 changed files with 7 additions and 7 deletions
|
@ -227,6 +227,12 @@
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nix_noTests = final.nix.override {
|
||||||
|
doCheck = false;
|
||||||
|
doInstallCheck = false;
|
||||||
|
installUnitTests = false;
|
||||||
|
};
|
||||||
|
|
||||||
# See https://github.com/NixOS/nixpkgs/pull/214409
|
# See https://github.com/NixOS/nixpkgs/pull/214409
|
||||||
# Remove when fixed in this flake's nixpkgs
|
# Remove when fixed in this flake's nixpkgs
|
||||||
pre-commit =
|
pre-commit =
|
||||||
|
|
|
@ -58,13 +58,7 @@ in
|
||||||
self.packages.${system}.nix.override { enableGC = false; }
|
self.packages.${system}.nix.override { enableGC = false; }
|
||||||
);
|
);
|
||||||
|
|
||||||
buildNoTests = forAllSystems (system:
|
buildNoTests = forAllSystems (system: nixpkgsFor.${system}.native.nix_noTests);
|
||||||
self.packages.${system}.nix.override {
|
|
||||||
doCheck = false;
|
|
||||||
doInstallCheck = false;
|
|
||||||
installUnitTests = false;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
# Toggles some settings for better coverage. Windows needs these
|
# Toggles some settings for better coverage. Windows needs these
|
||||||
# library combinations, and Debian build Nix with GNU readline too.
|
# library combinations, and Debian build Nix with GNU readline too.
|
||||||
|
|
Loading…
Reference in a new issue