diff options
author | mdarocha <git@mdarocha.pl> | 2023-11-15 08:58:26 +0100 |
---|---|---|
committer | mdarocha <git@mdarocha.pl> | 2023-11-15 21:52:37 +0100 |
commit | aa7e324b9168c1b2e15698d6e53d22f4f98634f1 (patch) | |
tree | 783c9f0b82fc7d9558c26abfd30827e9cd3c5416 /pkgs | |
parent | 7538921747fe331b50c2d5890cc3c07a7e1f065a (diff) |
dotnet-sdk_8: fix smoke test
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/compilers/dotnet/build-dotnet.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/development/compilers/dotnet/build-dotnet.nix b/pkgs/development/compilers/dotnet/build-dotnet.nix index 91eba8f8dd776..bcdb16c633508 100644 --- a/pkgs/development/compilers/dotnet/build-dotnet.nix +++ b/pkgs/development/compilers/dotnet/build-dotnet.nix @@ -120,6 +120,7 @@ stdenv.mkDerivation (finalAttrs: rec { export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 # Dont try to expand NuGetFallbackFolder to disk export DOTNET_NOLOGO=1 # Disables the welcome message export DOTNET_CLI_TELEMETRY_OPTOUT=1 + export DOTNET_SKIP_WORKLOAD_INTEGRITY_CHECK=1 # Skip integrity check on first run, which fails due to read-only directory ''; passthru = { @@ -147,9 +148,10 @@ stdenv.mkDerivation (finalAttrs: rec { nativeBuildInputs = [ finalAttrs.finalPackage ]; } '' HOME=$(pwd)/fake-home - dotnet new console - dotnet build - output="$(dotnet run)" + dotnet new console --no-restore + dotnet restore --source "$(mktemp -d)" + dotnet build --no-restore + output="$(dotnet run --no-build)" # yes, older SDKs omit the comma [[ "$output" =~ Hello,?\ World! ]] && touch "$out" ''; |