!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

113 Members
23 Servers

Load older messages


SenderMessageTime
6 Oct 2025
@corngood:corngood.comCorngoodYeah, but I'm going to try cherry-picking it, since it's causing build failures: https://github.com/NixOS/nixpkgs/pull/44923719:57:07
@samuel:mnzn.devSamuel Makes sense, all machines I was hitting this issue on are running Ryzen processors with AVX-512 support 19:58:11
@corngood:corngood.comCorngoodYeah, I didn't put it together than I've got an older ryzen without that instruction set...20:00:49
@samuel:mnzn.devSamuel Well you wouldn't usually expect hardware support for more features to break your software, so... 20:03:03
@samuel:mnzn.devSamuel Because usually it's the other way around. 20:03:41
8 Oct 2025
@corngood:corngood.comCorngoodhttps://github.com/NixOS/nixpkgs/pull/449614 dotnet build fix for darwin, in case anyone is able to review16:52:14
@corngood:corngood.comCorngoodLooks like we have dotnet 10 building in hydra again 🎉16:53:50
@andrewzah:matrix.abare.partyAndrew Zah joined the room.17:14:29
10 Oct 2025
@whovian9369:matrix.orgWhovian9369

Hey gang, I'm trying to build https://github.com/aaru-dps/Aaru/releases/tag/v6.0.0-alpha.12 from source (e2d70ba327dfc5ab67d068389c0b2e6049f76a87) and keep getting the following issue. The issue does not seem to appear with the latest git commit (5e8aece987d799e51e970bd170c28e2bd1ebf374) -- Anyone have any ideas on where to go from here?

CSC : error PH2075: AssemblyVersion has changed. Actual: 6.0.0.12 Expected: 1.0.0.0 [/build/source/Aaru.Logging/Aaru.Logging.csproj]
CSC : error PH2075: AssemblyVersion has changed. Actual: 6.0.0.12 Expected: 1.0.0.0 [/build/source/Aaru.Localization/Aaru.Localization.csproj]
21:06:46
@whovian9369:matrix.orgWhovian9369Download prerelease.nix21:08:49
@whovian9369:matrix.orgWhovian9369Here's my current derivation that's throwing the error, in case it gives any obvious ideas.21:09:15
@whovian9369:matrix.orgWhovian9369Just realized that one of the differing commits seems to specifically "fix" this error by telling Dotnet to ignore it: https://github.com/aaru-dps/Aaru/commit/3b2cda2e312420038a40bd9a53f9a8334c38ca1b21:29:53
@whovian9369:matrix.orgWhovian9369Pinning the release to that makes the build work. so I'm going to stop questioning it for the moment. 21:30:49
14 Oct 2025
@samuel:mnzn.devSamueldotnet 10 rc2 is out now20:21:20
15 Oct 2025
@corngood:corngood.comCorngoodI'm running updates locally. Unfortunately they rearranged things in their release bot and broke auto updates :|01:14:55
@andrewzah:matrix.abare.partyAndrew Zah changed their display name from andrewzah to Andrew Zah.09:29:43
@corngood:corngood.comCorngoodoctober updates in: https://github.com/NixOS/nixpkgs/pull/452225 nothing too concerning so far17:21:09
@samuel:mnzn.devSamuel awesome 17:23:12
16 Oct 2025
@samuel:mnzn.devSamuelBuilding webkit is not fun09:52:24
@corngood:corngood.comCorngoodI'm happy with this now. Could use a review if anyone is available.14:02:40
@samuel:mnzn.devSamuelBuilding right now16:52:20
21 Oct 2025
@andrewzah:matrix.abare.partyAndrew Zah set a profile picture.09:49:41
23 Oct 2025
@manuelbaerenz:matrix.orgManuel Bärenz joined the room.15:45:21
@manuelbaerenz:matrix.orgManuel Bärenz

I'm using nixpkgs for years now, and dotnet for the first time. I need to package a web service somepkg that a third party offers on their own nuget server nuget.thirdparty.com/somepkg/nuget. I can't figure out how to properly override buildDotnetGlobalTool (I guess) to accept the custom nuget url. I'm trying something like this:

buildDotnetGlobalTool.override ({
  fetchNupkg = dotnetCorePackages.fetchNupkg.override {
    url = "..."

But that seems to be wrong:

error: function 'anonymous lambda' called with unexpected argument 'url'
       at /nix/store/jbjpzwqzf0vq989s6y302jy1dff4z321-source/pkgs/build-support/dotnet/fetch-nupkg/default.nix:1:1:

Is there a standard way to do this? (Or else I probably need to dig deep into how dotnet is implemented in nixpkgs?)

15:49:10
@manuelbaerenz:matrix.orgManuel Bärenz

I managed something like this:

let
  pname = "IBPkernelSimplifiedHS";
  version = "v1";
  customNugetServer = "https://nuget.thirdparty.com/somepkg/nuget";
  url = "${customNugetServer}/${pname}/${version}";
in
dotnetCorePackages.buildDotnetGlobalTool.override {
  fetchNupkg = args: dotnetCorePackages.fetchNupkg (args // {
    inherit url;
  });
} {
  inherit pname version;
}

And it actually attempts to download from the third party server 🎉 but the URL schema is still wrong. I'm not sure what the standard url schema would be in this case.

16:06:47
@manuelbaerenz:matrix.orgManuel Bärenz

I managed to grasp the URL schema, so that's fixed. I now have have a somepkg.nupkg archive with this structure:

_rels -> .rels
_lib -> net8.0 ->
  somepkg.dll
  somepkgFoo.dll
  ...
package ->
  services -> metadata -> core-properties -> 12341234.psmdcp
  [Content_Types].xml
somepkg.nuspec

It seems that buildDotnetGlobalTool can't deal with this structure:

Unhandled exception: System.IO.DirectoryNotFoundException: Could not find a part of the path '/nix/store/58w6rl6al5f1yq4ckmg4qm7a8r1r7rz9-somepkg-1.0.98/lib/somepkg/.store/somepkg/1.0.98/somepkg/1.0.98/tools
16:32:50
@manuelbaerenz:matrix.orgManuel Bärenz *

I managed to grasp the URL schema, so that's fixed. I now have have a somepkg.nupkg archive with this structure:

_rels -> .rels
lib -> net8.0 ->
  somepkg.dll
  somepkgFoo.dll
  ...
package ->
  services -> metadata -> core-properties -> 12341234.psmdcp
  [Content_Types].xml
somepkg.nuspec

It seems that buildDotnetGlobalTool can't deal with this structure:

Unhandled exception: System.IO.DirectoryNotFoundException: Could not find a part of the path '/nix/store/58w6rl6al5f1yq4ckmg4qm7a8r1r7rz9-somepkg-1.0.98/lib/somepkg/.store/somepkg/1.0.98/somepkg/1.0.98/tools
16:33:11
@gggkiller:matrix.orgGGGit seems like it isn't a dotnet tool, but just a plain .NET assembly instead17:32:28
@gggkiller:matrix.orgGGG you'll probably need to extract everything in lib, fetch its deps (if it has any) and then use makeWrapper to wrap it in a dotnet exec somepk.dll call 17:33:03
@gggkiller:matrix.orgGGG * you'll probably need to extract everything in lib/net8.0, fetch its deps (if it has any) and then use makeWrapper to wrap it in a dotnet exec somepk.dll call 17:41:55

Show newer messages


Back to Room ListRoom Version: 9