Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet: august 2024 upgrades #335969

Merged
merged 5 commits into from
Aug 23, 2024
Merged

dotnet: august 2024 upgrades #335969

merged 5 commits into from
Aug 23, 2024

Conversation

corngood
Copy link
Contributor

@corngood corngood commented Aug 20, 2024

Description of changes

FYI @NixOS/dotnet

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added the 6.topic: dotnet Language: .NET label Aug 20, 2024
@corngood
Copy link
Contributor Author

Result of nixpkgs-review run on aarch64-darwin 1

13 packages failed to build:
  • dotnetCorePackages.dotnet_9.aspnetcore
  • dotnetCorePackages.dotnet_9.runtime
  • dotnetCorePackages.dotnet_9.sdk
  • dotnetCorePackages.dotnet_9.sdk.artifacts
  • dotnetCorePackages.dotnet_9.sdk.packages
  • dotnetCorePackages.dotnet_9.vmr
  • python311Packages.pyannote-audio
  • python311Packages.pyannote-audio.dist
  • python312Packages.pyannote-audio
  • python312Packages.pyannote-audio.dist
  • roslyn-ls
  • whisper-ctranslate2
  • whisper-ctranslate2.dist
75 packages built:
  • ArchiSteamFarm
  • avalonia-ilspy
  • azure-functions-core-tools
  • bicep
  • bililiverecorder
  • blendfarm
  • boogie
  • btcpayserver
  • btcpayserver-altcoins
  • csharp-ls
  • csharpier
  • csharprepl
  • cyclonedx-cli
  • dafny
  • depotdownloader
  • dotnet-aspnetcore
  • dotnet-aspnetcore_8
  • dotnet-outdated
  • dotnet-runtime
  • dotnet-runtime_8
  • dotnet-sdk
  • dotnet-sdk_8
  • dotnetCorePackages.aspnetcore_9_0
  • dotnetCorePackages.dotnet_8.aspnetcore
  • dotnetCorePackages.dotnet_8.runtime
  • dotnetCorePackages.dotnet_8.sdk
  • dotnetCorePackages.dotnet_8.sdk.artifacts
  • dotnetCorePackages.dotnet_8.sdk.packages
  • dotnetCorePackages.dotnet_8.vmr
  • dotnetCorePackages.runtime_9_0
  • dotnetCorePackages.sdk_6_0_1xx
  • dotnetCorePackages.sdk_8_0_1xx
  • dotnetCorePackages.sdk_8_0_3xx
  • dotnetCorePackages.sdk_9_0
  • fantomas
  • formula
  • fsautocomplete
  • garnet
  • gh-gei
  • git-credential-manager
  • github-runner
  • gitversion
  • ilspycmd
  • jackett
  • jellyfin
  • juniper
  • knossosnet
  • kryptor
  • libation
  • lubelogger
  • marksman
  • msbuild
  • nbxplorer
  • netcoredbg
  • nuget-to-nix
  • omnisharp-roslyn
  • pre-commit
  • pre-commit.dist
  • prowlarr
  • python311Packages.asteroid-filterbanks
  • python311Packages.asteroid-filterbanks.dist
  • python311Packages.clr-loader
  • python311Packages.clr-loader.dist
  • python311Packages.pythonnet
  • python311Packages.pythonnet.dist
  • python312Packages.asteroid-filterbanks
  • python312Packages.asteroid-filterbanks.dist
  • python312Packages.clr-loader
  • python312Packages.clr-loader.dist
  • python312Packages.pythonnet
  • python312Packages.pythonnet.dist
  • radarr
  • roslyn
  • sonarr
  • torrentstream

@corngood
Copy link
Contributor Author

Result of nixpkgs-review pr 335969 run on x86_64-linux 1

3 packages failed to build:
  • nexusmods-app
  • roslyn-ls
  • ryujinx
132 packages built:
  • ArchiSteamFarm
  • alttpr-opentracker
  • am2rlauncher
  • avalonia-ilspy
  • azure-functions-core-tools
  • beatsabermodmanager
  • bicep
  • bililiverecorder
  • blendfarm
  • boogie
  • btcpayserver
  • btcpayserver-altcoins
  • cavalier
  • celeste64
  • csharp-ls
  • csharpier
  • csharprepl
  • cyclonedx-cli
  • dafny
  • denaro
  • depotdownloader
  • discordchatexporter-cli
  • dotnet-aspnetcore
  • dotnet-aspnetcore_8
  • dotnet-outdated
  • dotnet-runtime
  • dotnet-runtime_8
  • dotnet-sdk
  • dotnet-sdk_8
  • dotnetCorePackages.aspnetcore_9_0
  • dotnetCorePackages.dotnet_8.aspnetcore
  • dotnetCorePackages.dotnet_8.runtime
  • dotnetCorePackages.dotnet_8.sdk
  • dotnetCorePackages.dotnet_8.sdk.artifacts
  • dotnetCorePackages.dotnet_8.sdk.packages
  • dotnetCorePackages.dotnet_8.vmr
  • dotnetCorePackages.dotnet_9.aspnetcore
  • dotnetCorePackages.dotnet_9.runtime
  • dotnetCorePackages.dotnet_9.sdk
  • dotnetCorePackages.dotnet_9.sdk.artifacts
  • dotnetCorePackages.dotnet_9.sdk.packages
  • dotnetCorePackages.dotnet_9.vmr
  • dotnetCorePackages.runtime_9_0
  • dotnetCorePackages.sdk_6_0_1xx
  • dotnetCorePackages.sdk_8_0_1xx
  • dotnetCorePackages.sdk_8_0_3xx
  • dotnetCorePackages.sdk_9_0
  • eventstore
  • fable
  • fantomas
  • formula
  • fsautocomplete
  • galaxy-buds-client
  • garnet
  • gh-gei
  • git-credential-manager
  • github-runner
  • gitversion
  • godot3-mono
  • godot3-mono-debug-server
  • godot3-mono-export-templates
  • godot3-mono-headless
  • godot3-mono-headless.dev
  • godot3-mono-headless.man
  • godot3-mono-server
  • godot3-mono.dev
  • godot3-mono.man
  • ilspycmd
  • inklecate
  • jackett
  • jellyfin
  • juniper
  • kavita
  • knossosnet
  • kryptor
  • libation
  • lidarr
  • lubelogger
  • lumafly
  • marksman
  • mqttmultimeter
  • msbuild
  • naps2
  • nbxplorer
  • netcoredbg
  • networkminer
  • nexusmods-app-unfree
  • nuget-to-nix
  • omnisharp-roslyn
  • openra
  • opentabletdriver
  • osu-lazer
  • parabolic
  • pbm
  • pinta
  • pre-commit
  • pre-commit.dist
  • prowlarr
  • ps3-disc-dumper
  • python311Packages.asteroid-filterbanks
  • python311Packages.asteroid-filterbanks.dist
  • python311Packages.clr-loader
  • python311Packages.clr-loader.dist
  • python311Packages.pyannote-audio
  • python311Packages.pyannote-audio.dist
  • python311Packages.pythonnet
  • python311Packages.pythonnet.dist
  • python312Packages.asteroid-filterbanks
  • python312Packages.asteroid-filterbanks.dist
  • python312Packages.clr-loader
  • python312Packages.clr-loader.dist
  • python312Packages.pyannote-audio
  • python312Packages.pyannote-audio.dist
  • python312Packages.pythonnet
  • python312Packages.pythonnet.dist
  • radarr
  • readarr
  • renode
  • renode-unstable
  • retrospy
  • roslyn
  • scarab
  • slskd
  • sonarr
  • space-station-14-launcher
  • tagger
  • technitium-dns-server
  • tone
  • torrentstream
  • whisper-ctranslate2
  • whisper-ctranslate2.dist
  • xivlauncher

@ofborg ofborg bot added the 11.by: package-maintainer This PR was created by the maintainer of the package it changes label Aug 21, 2024
This fixes intermittent ArgumentOutOfRangeExceptions when building
certain packages (e.g. roslyn-ls).
@ofborg ofborg bot requested a review from konradmalik August 21, 2024 15:14
@corngood
Copy link
Contributor Author

Result of nixpkgs-review pr 335969 run on x86_64-linux 1

2 packages failed to build:
  • ryujinx
  • tests.writers.simple.fsharp
157 packages built:
  • ArchiSteamFarm
  • alttpr-opentracker
  • am2rlauncher
  • avalonia-ilspy
  • azure-functions-core-tools
  • beatsabermodmanager
  • bicep
  • bililiverecorder
  • blendfarm
  • boogie (dotnetPackages.Boogie)
  • btcpayserver
  • btcpayserver-altcoins
  • cavalier
  • celeste64
  • certdump
  • csharp-ls
  • csharpier
  • csharprepl
  • cyclonedx-cli
  • dafny
  • denaro
  • depotdownloader
  • discordchatexporter-cli
  • dotnet-aspnetcore (dotnet-aspnetcore_6 ,dotnetCorePackages.aspnetcore_6_0)
  • dotnet-aspnetcore_8 (dotnetCorePackages.aspnetcore_8_0)
  • dotnet-outdated
  • dotnet-runtime (dotnet-runtime_6 ,dotnetCorePackages.runtime_6_0)
  • dotnet-runtime_8 (dotnetCorePackages.runtime_8_0)
  • dotnet-sdk (dotnet-sdk_6 ,dotnetCorePackages.sdk_6_0 ,dotnetCorePackages.sdk_6_0_4xx)
  • dotnet-sdk_7 (dotnetCorePackages.sdk_7_0 ,dotnetCorePackages.sdk_7_0_4xx)
  • dotnet-sdk_8 (dotnetCorePackages.sdk_8_0 ,dotnetCorePackages.sdk_8_0_4xx)
  • dotnetCorePackages.aspnetcore_9_0
  • dotnetCorePackages.dotnet_8.aspnetcore
  • dotnetCorePackages.dotnet_8.runtime
  • dotnetCorePackages.dotnet_8.sdk
  • dotnetCorePackages.dotnet_8.sdk.artifacts
  • dotnetCorePackages.dotnet_8.sdk.packages
  • dotnetCorePackages.dotnet_8.vmr
  • dotnetCorePackages.dotnet_9.aspnetcore
  • dotnetCorePackages.dotnet_9.runtime
  • dotnetCorePackages.dotnet_9.sdk
  • dotnetCorePackages.dotnet_9.sdk.artifacts
  • dotnetCorePackages.dotnet_9.sdk.packages
  • dotnetCorePackages.dotnet_9.vmr
  • dotnetCorePackages.runtime_9_0
  • dotnetCorePackages.sdk_6_0_1xx
  • dotnetCorePackages.sdk_7_0_1xx
  • dotnetCorePackages.sdk_7_0_3xx
  • dotnetCorePackages.sdk_8_0_1xx
  • dotnetCorePackages.sdk_8_0_3xx
  • dotnetCorePackages.sdk_9_0 (dotnetCorePackages.sdk_9_0_1xx)
  • eventstore
  • fable
  • famistudio
  • fantomas
  • formula
  • fsautocomplete
  • galaxy-buds-client
  • garnet
  • gh-gei
  • git-credential-manager
  • github-runner
  • gitversion
  • godot3-mono
  • godot3-mono-debug-server
  • godot3-mono-export-templates
  • godot3-mono-headless
  • godot3-mono-headless.dev
  • godot3-mono-headless.man
  • godot3-mono-server
  • godot3-mono.dev
  • godot3-mono.man
  • ilspycmd
  • inklecate
  • jackett
  • jellyfin
  • jetbrains.clion
  • jetbrains.rider
  • juniper
  • kavita
  • knossosnet
  • kryptor
  • libation
  • lidarr
  • lubelogger
  • lumafly
  • marksman
  • mqttmultimeter
  • msbuild
  • naps2
  • nbxplorer
  • netcoredbg
  • networkminer
  • nexusmods-app
  • nexusmods-app-unfree
  • nuget-to-nix
  • omnisharp-roslyn
  • openra
  • opentabletdriver
  • openutau
  • osu-lazer
  • pablodraw
  • parabolic
  • pbm
  • pinta
  • pre-commit
  • pre-commit.dist
  • prowlarr
  • ps3-disc-dumper
  • pupdate
  • python311Packages.asteroid-filterbanks
  • python311Packages.asteroid-filterbanks.dist
  • python311Packages.clr-loader
  • python311Packages.clr-loader.dist
  • python311Packages.pyannote-audio
  • python311Packages.pyannote-audio.dist
  • python311Packages.pythonnet
  • python311Packages.pythonnet.dist
  • python312Packages.asteroid-filterbanks
  • python312Packages.asteroid-filterbanks.dist
  • python312Packages.clr-loader
  • python312Packages.clr-loader.dist
  • python312Packages.pyannote-audio
  • python312Packages.pyannote-audio.dist
  • python312Packages.pythonnet
  • python312Packages.pythonnet.dist
  • radarr
  • readarr
  • renode
  • renode-unstable
  • retrospy
  • roslyn
  • roslyn-ls
  • scarab
  • slskd
  • sonarr
  • space-station-14-launcher
  • tagger
  • technitium-dns-server
  • tests.dotnet.final-attrs.check-output
  • tests.dotnet.final-attrs.output-matches-const
  • tests.dotnet.final-attrs.override-has-no-effect
  • tests.dotnet.final-attrs.override-modifies-output
  • tests.dotnet.project-references
  • tests.dotnet.structured-attrs.check-output
  • tests.dotnet.structured-attrs.no-structured-attrs
  • tests.dotnet.use-dotnet-from-env.fallback
  • tests.dotnet.use-dotnet-from-env.use-dotnet-path-env
  • tests.dotnet.use-dotnet-from-env.use-dotnet-root-env
  • tests.dotnet.use-dotnet-from-env.without-fallback
  • tests.writers.simple.fsharpNoNugetDeps
  • tone
  • torrentstream
  • wasabibackend
  • whisper-ctranslate2
  • whisper-ctranslate2.dist
  • xivlauncher

@corngood
Copy link
Contributor Author

corngood commented Aug 21, 2024

2 packages failed to build:

ryujinx

This is an ongoing problem: #325857

tests.writers.simple.fsharp

This is also broken in master, but I'm not 100% sure why nixpkgs-review started building it.

@@ -1,9 +1,9 @@
{ lib, fetchFromGitHub, buildDotnetModule, dotnetCorePackages, stdenvNoCC, testers, roslyn-ls, jq }:
let
pname = "roslyn-ls";
dotnet-sdk = dotnetCorePackages.sdk_9_0;
dotnet-sdk = with dotnetCorePackages; combinePackages [ sdk_6_0 sdk_7_0 sdk_8_0 sdk_9_0 ];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps this is my lack of understanding, but why do we add those other SDKs back here?
In the last PR for this package I've removed them which did not change deps.nix at all.
Also there is #326335 which requires to stop using sdk_7_0.

Copy link
Contributor Author

@corngood corngood Aug 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

roslyn-ls uses the runtime packages from dotnet 6, 7, 8, and 9. Including 7 here removes the dependency on its packages. Unfortunately 6 and 8 are still present using older versions (6.0.32 and 8.0.7).

I think this is because sdk 9 preview 7 has hardcoded references to 6.0.32, 7.0.20, and 8.0.7, but I haven't had a chance to go digging for that yet.

I'm not sure what the best solution to this is.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be an option:

diff --git a/pkgs/by-name/ro/roslyn-ls/package.nix b/pkgs/by-name/ro/roslyn-ls/package.nix
index 3207eea29d09..5f5096f28f4d 100644
--- a/pkgs/by-name/ro/roslyn-ls/package.nix
+++ b/pkgs/by-name/ro/roslyn-ls/package.nix
@@ -1,9 +1,9 @@
 { lib, fetchFromGitHub, buildDotnetModule, dotnetCorePackages, stdenvNoCC, testers, roslyn-ls, jq }:
 let
   pname = "roslyn-ls";
-  dotnet-sdk = with dotnetCorePackages; combinePackages [ sdk_6_0 sdk_7_0 sdk_8_0 sdk_9_0 ];
+  dotnet-sdk = dotnetCorePackages.sdk_9_0;
   # need sdk on runtime as well
-  dotnet-runtime = dotnetCorePackages.sdk_9_0;
+  dotnet-runtime = dotnet-sdk;
 
   project = "Microsoft.CodeAnalysis.LanguageServer";
 in
@@ -45,6 +45,14 @@ buildDotnetModule rec {
     # see this comment: https://github.com/NixOS/nixpkgs/pull/318497#issuecomment-2256096471
     # we can remove below line after https://github.com/dotnet/roslyn/issues/73439 is fixed
     "-p:UsingToolMicrosoftNetCompilers=false"
+    # force everything to net9.0
+    "-p:NetRoslyn=net9.0"
+    "-p:NetRoslynSourceBuild=net9.0"
+    "-p:NetRoslynAll=net9.0"
+    "-p:NetRoslynBuildHostNetCoreVersion=net9.0"
+    "-p:NetRoslynNext=net9.0"
+    "-p:NetVSCode=net9.0"
+    "-p:NetVSShared=net9.0"
   ];
 
   # two problems solved here:

@konradmalik what would you think of that? it allows all the reference dependencies to be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another option is to look into forcing KnownAppHost to use the versions we actually have in nixpkgs.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with that if it works. Do you want to include it here, or should I create a PR? could try KnownAppHost there as well.

Copy link
Contributor

@konradmalik konradmalik Aug 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also just leave it as @Smaug123 suggested. Not sure what it means for the deprecated dotnet 7 though.

Also an idea - we could try setting props such that this branch will be used
which, if I understand correctly, will force using only NetCurrent and NetPrevious which is set to net9.0 in arcade and net8.0 respectively.

All that being said - maybe I should do it in a separate PR aimed just at roslyn-ls.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also an idea - we could try setting props such that this branch will be used

I did try this, but DotNetBuildFromSource seems to cause other problems. I think it might be meant for building as part of the VMR?

I think I'll leave it as is for now. If we ever improve KnownAppHost in the build infrastructure, the dependencies will be reduced on the next fetch-deps, but only if we used the combined sdks.

@corngood
Copy link
Contributor Author

Result of nixpkgs-review pr 335969 run on aarch64-darwin 1

2 packages marked as broken and skipped:
  • certdump
  • pablodraw
6 packages failed to build:
  • python311Packages.pyannote-audio
  • python311Packages.pyannote-audio.dist
  • python312Packages.pyannote-audio
  • python312Packages.pyannote-audio.dist
  • whisper-ctranslate2
  • whisper-ctranslate2.dist
87 packages built:
  • ArchiSteamFarm
  • avalonia-ilspy
  • azure-functions-core-tools
  • bicep
  • bililiverecorder
  • blendfarm
  • boogie (dotnetPackages.Boogie)
  • btcpayserver
  • btcpayserver-altcoins
  • csharp-ls
  • csharpier
  • csharprepl
  • cyclonedx-cli
  • dafny
  • depotdownloader
  • dotnet-aspnetcore (dotnet-aspnetcore_6 ,dotnetCorePackages.aspnetcore_6_0)
  • dotnet-aspnetcore_8 (dotnetCorePackages.aspnetcore_8_0)
  • dotnet-outdated
  • dotnet-runtime (dotnet-runtime_6 ,dotnetCorePackages.runtime_6_0)
  • dotnet-runtime_8 (dotnetCorePackages.runtime_8_0)
  • dotnet-sdk (dotnet-sdk_6 ,dotnetCorePackages.sdk_6_0 ,dotnetCorePackages.sdk_6_0_4xx)
  • dotnet-sdk_7 (dotnetCorePackages.sdk_7_0 ,dotnetCorePackages.sdk_7_0_4xx)
  • dotnet-sdk_8 (dotnetCorePackages.sdk_8_0 ,dotnetCorePackages.sdk_8_0_4xx)
  • dotnetCorePackages.aspnetcore_9_0
  • dotnetCorePackages.dotnet_8.aspnetcore
  • dotnetCorePackages.dotnet_8.runtime
  • dotnetCorePackages.dotnet_8.sdk
  • dotnetCorePackages.dotnet_8.sdk.artifacts
  • dotnetCorePackages.dotnet_8.sdk.packages
  • dotnetCorePackages.dotnet_8.vmr
  • dotnetCorePackages.dotnet_9.aspnetcore
  • dotnetCorePackages.dotnet_9.runtime
  • dotnetCorePackages.dotnet_9.sdk
  • dotnetCorePackages.dotnet_9.sdk.artifacts
  • dotnetCorePackages.dotnet_9.sdk.packages
  • dotnetCorePackages.dotnet_9.vmr
  • dotnetCorePackages.runtime_9_0
  • dotnetCorePackages.sdk_6_0_1xx
  • dotnetCorePackages.sdk_7_0_1xx
  • dotnetCorePackages.sdk_7_0_3xx
  • dotnetCorePackages.sdk_8_0_1xx
  • dotnetCorePackages.sdk_8_0_3xx
  • dotnetCorePackages.sdk_9_0 (dotnetCorePackages.sdk_9_0_1xx)
  • famistudio
  • fantomas
  • formula
  • fsautocomplete
  • garnet
  • gh-gei
  • git-credential-manager
  • github-runner
  • gitversion
  • ilspycmd
  • jackett
  • jellyfin
  • juniper
  • knossosnet
  • kryptor
  • libation
  • lubelogger
  • marksman
  • msbuild
  • nbxplorer
  • netcoredbg
  • omnisharp-roslyn
  • openutau
  • pre-commit
  • pre-commit.dist
  • prowlarr
  • python311Packages.asteroid-filterbanks
  • python311Packages.asteroid-filterbanks.dist
  • python311Packages.clr-loader
  • python311Packages.clr-loader.dist
  • python311Packages.pythonnet
  • python311Packages.pythonnet.dist
  • python312Packages.asteroid-filterbanks
  • python312Packages.asteroid-filterbanks.dist
  • python312Packages.clr-loader
  • python312Packages.clr-loader.dist
  • python312Packages.pythonnet
  • python312Packages.pythonnet.dist
  • radarr
  • roslyn
  • roslyn-ls
  • sonarr
  • tests.dotnet.structured-attrs.no-structured-attrs
  • torrentstream

@corngood corngood marked this pull request as ready for review August 22, 2024 19:14
@corngood
Copy link
Contributor Author

All package tests on linux also passed, so this is ready for review.

Copy link
Contributor

@Smaug123 Smaug123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I'd stick with the "all the runtimes" in roslyn-ls if it has hard-coded requirements for it, rather than adding our own msbuild property overrides. But 1) I don't use roslyn-ls, 2) my opinion is weakly held, and 3) I value consistency with upstream quite highly to reduce work.

@@ -34,6 +34,7 @@ in writeShellScriptBin "patch-nupkgs" (''
if [ "$magic" = $'\177ELF' ]; then return 0; else return 1; fi
}
cd "$1"
'' + lib.optionalString stdenv.isLinux ''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks obviously correct; do you know why this wasn't there before?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For VMR, packages weren't being patched on darwin before, but 9.0 now needs the ilcompiler fix below.

I suppose this could actually use stdenv.hostPlatform.isElf.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'll leave this as-is for now. isElf is something to consider for the future, but everything else is using isLinux and isDarwin. I think realistically this can happen if/when we make dotnet work on BSD.

@corngood corngood merged commit 3704dd0 into NixOS:master Aug 23, 2024
46 of 47 checks passed
@corngood corngood deleted the dotnet-upgrade branch August 23, 2024 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: dotnet Language: .NET 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 11-100 10.rebuild-linux: 101-500 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants