mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
agdaPackages: enable parallel builds on supported versions
Both Mikan and the upcoming Agda 2.9.0 release support parallel builds with `-j`.
This commit is contained in:
@@ -31,6 +31,7 @@ let
|
||||
;
|
||||
|
||||
isMikan = Agda.meta.mainProgram == "mikan";
|
||||
supportsParallel = isMikan || lib.versionAtLeast Agda.version "2.9.0";
|
||||
|
||||
mkLibraryFile =
|
||||
pkgs:
|
||||
@@ -147,7 +148,7 @@ let
|
||||
else
|
||||
''
|
||||
runHook preBuild
|
||||
${lib.getExe agdaWithPkgs} --build-library
|
||||
${lib.getExe agdaWithPkgs} --build-library${optionalString supportsParallel " -j$NIX_BUILD_CORES"}
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user