diff options
author | IvarWithoutBones <ivar.scholten@protonmail.com> | 2022-02-12 01:19:20 +0100 |
---|---|---|
committer | IvarWithoutBones <ivar.scholten@protonmail.com> | 2022-02-12 02:15:13 +0100 |
commit | 0b1856bfe3837b4509b180b4e9e51d19a88231ba (patch) | |
tree | 962d6359eaafb5a7355223430dfaab0cc300ba56 /pkgs/build-support/dotnet | |
parent | 992b656c9ea6ab583123273f39f1b22a8f29e96d (diff) | |
download | nixpkgs-0b1856bfe3837b4509b180b4e9e51d19a88231ba.tar nixpkgs-0b1856bfe3837b4509b180b4e9e51d19a88231ba.tar.gz nixpkgs-0b1856bfe3837b4509b180b4e9e51d19a88231ba.tar.bz2 nixpkgs-0b1856bfe3837b4509b180b4e9e51d19a88231ba.tar.lz nixpkgs-0b1856bfe3837b4509b180b4e9e51d19a88231ba.tar.xz nixpkgs-0b1856bfe3837b4509b180b4e9e51d19a88231ba.tar.zst nixpkgs-0b1856bfe3837b4509b180b4e9e51d19a88231ba.zip |
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.
Diffstat (limited to 'pkgs/build-support/dotnet')
-rw-r--r-- | pkgs/build-support/dotnet/build-dotnet-module/default.nix | 1 | ||||
-rw-r--r-- | pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-configure-hook.sh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/build-support/dotnet/build-dotnet-module/default.nix b/pkgs/build-support/dotnet/build-dotnet-module/default.nix index e721b59decb..d3561282d3f 100644 --- a/pkgs/build-support/dotnet/build-dotnet-module/default.nix +++ b/pkgs/build-support/dotnet/build-dotnet-module/default.nix @@ -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)} diff --git a/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-configure-hook.sh b/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-configure-hook.sh index 3ca89fdc095..e0522dc95ce 100644 --- a/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-configure-hook.sh +++ b/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-configure-hook.sh @@ -16,6 +16,7 @@ dotnetConfigureHook() { dotnet restore "$project" \ -p:ContinuousIntegrationBuild=true \ -p:Deterministic=true \ + -p:RestoreUseStaticGraphEvaluation=true \ --source "@nugetSource@/lib" \ ${parallelFlag-} \ "${dotnetRestoreFlags[@]}" \ |