buildDotnetModule: enable RestoreUseStaticGraphEvaluation

This should speed up restore times a fair bit, especially for bigger
projects. Roslyn also has it enabled by default already, so I don't
expect any breakages from it.
This commit is contained in:
IvarWithoutBones 2022-02-12 01:19:20 +01:00
parent 992b656c9e
commit 0b1856bfe3
2 changed files with 2 additions and 0 deletions

View File

@ -158,6 +158,7 @@ in stdenvNoCC.mkDerivation (args // {
${lib.optionalString (!enableParallelBuilding) "--disable-parallel"} \
-p:ContinuousIntegrationBuild=true \
-p:Deterministic=true \
-p:RestoreUseStaticGraphEvaluation=true \
--packages "$HOME/nuget_pkgs" \
${lib.optionalString (dotnetRestoreFlags != []) (builtins.toString dotnetRestoreFlags)} \
${lib.optionalString (dotnetFlags != []) (builtins.toString dotnetFlags)}

View File

@ -16,6 +16,7 @@ dotnetConfigureHook() {
dotnet restore "$project" \
-p:ContinuousIntegrationBuild=true \
-p:Deterministic=true \
-p:RestoreUseStaticGraphEvaluation=true \
--source "@nugetSource@/lib" \
${parallelFlag-} \
"${dotnetRestoreFlags[@]}" \