Merge pull request #5246 from edolstra/faster-check

Speed up 'nix flake check'
This commit is contained in:
Eelco Dolstra
2021-09-14 12:22:28 +02:00
committed by GitHub
+2 -5
View File
@@ -178,8 +178,8 @@
installPhase = ''
mkdir -p $out
'';
installCheckPhase = "make installcheck";
installCheckPhase = "make installcheck -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES";
};
binaryTarball = buildPackages: nix: pkgs: let
@@ -502,10 +502,7 @@
# `NIX_DAEMON_SOCKET_PATH` which is required for the tests to work
# againstLatestStable = testNixVersions pkgs pkgs.nix pkgs.nixStable;
} "touch $out";
} // (if system == "x86_64-linux" then (builtins.listToAttrs (map (crossSystem: {
name = "binaryTarball-${crossSystem}";
value = self.hydraJobs.binaryTarballCross.${system}.${crossSystem};
}) crossSystems)) else {}));
});
packages = forAllSystems (system: {
inherit (nixpkgsFor.${system}) nix;