!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

113 Members
23 Servers

Load older messages


SenderMessageTime
7 Nov 2025
@emma:rory.gayEmma [it/its]

nom build git+https://cgit.rory.gay/matrix/LibMatrix.git\#LibMatrix-Federation -L

Corngood this is my current version

21:38:24
@emma:rory.gayEmma [it/its] with the flake being defined as... https://cgit.rory.gay/matrix/LibMatrix.git/tree/flake.nix 21:38:46
@emma:rory.gayEmma [it/its]fwiw, it does just seem to be a build time dependency, not a runtime one?22:00:12
@emma:rory.gayEmma [it/its]
/nix/store/v83r8fyhb9sc0raa0h5vg8549nslpq7p-LibMatrix.Federation-1.0.0-preview.20251101-191010+9065475-dirty.drv
└───/nix/store/1x4bh50ajp1xs1wf08c92sik2vmp3n2m-Microsoft.NETCore.App.Crossgen2.linux-x64-10.0.0-rc.2.25502.107.drv
    └───/nix/store/4f5c88n0bigz2r93hmjgvayq3h18qc2x-dotnet-vmr-10.0.0-rc.2.drv

this is what nix why-depends --derivation has to say

22:08:33
@emma:rory.gayEmma [it/its]hm, i was cleaning up and... now i have an infinite recursion issue, yay /s22:54:03
8 Nov 2025
@corngood:corngood.comCorngoodYeah, that's a build time dependency. You shouldn't need to pull it down unless you're building something that directly depends on it.18:33:46
9 Nov 2025
@emma:rory.gayEmma [it/its]then im not sure why i'd need to download it?00:12:42
@corngood:corngood.comCorngood

I don't understand this yet, but:

$ nix build --dry-run /nix/store/1x4bh50ajp1xs1wf08c92sik2vmp3n2m-Microsoft.NETCore.App.Crossgen2.linux-x64-10.0.0-rc.2.25502.107.drv^\*
this derivation will be built:
  /nix/store/1x4bh50ajp1xs1wf08c92sik2vmp3n2m-Microsoft.NETCore.App.Crossgen2.linux-x64-10.0.0-rc.2.25502.107.drv
this path will be fetched (696.14 MiB download, 2429.92 MiB unpacked):
  /nix/store/hqj210bagnykmd8mj5l2cq9739m9pvfm-dotnet-vmr-10.0.0-rc.2
$ nix path-info result/ -r
/nix/store/0ja5daq2yay3svg6f48spyfby7pgy5bm-xgcc-14.3.0-libgcc
/nix/store/v5zyzcc8slz7w73s3wpgysd4z2grz6w0-libunistring-1.4
/nix/store/f04v56v4i3z0mrvl2npgcx5k5a792yjc-libidn2-2.3.8
/nix/store/daamdpmaz2vjvna55ccrc30qw3qb8h6d-glibc-2.40-66
/nix/store/llswcygvgv9x2sa3z6j7i0g5iqqmn5gn-openssl-3.6.0
/nix/store/mnd897flngivhxnw8sxznhrcwwc9vyk3-gcc-14.3.0-libgcc
/nix/store/z7a34j3xnp66rpddayyxrxwsahxccbip-gcc-14.3.0-lib
/nix/store/v72pwpdh1xnkkj73cck5ywfcwlmpsrr4-Microsoft.NETCore.App.Crossgen2.linux-x64-10.0.0-rc.2.25502.107
17:27:37
@corngood:corngood.comCorngood *

I don't understand this yet, but:

$ nix build --dry-run /nix/store/1x4bh50ajp1xs1wf08c92sik2vmp3n2m-Microsoft.NETCore.App.Crossgen2.linux-x64-10.0.0-rc.2.25502.107.drv^\*
this derivation will be built:
  /nix/store/1x4bh50ajp1xs1wf08c92sik2vmp3n2m-Microsoft.NETCore.App.Crossgen2.linux-x64-10.0.0-rc.2.25502.107.drv
this path will be fetched (696.14 MiB download, 2429.92 MiB unpacked):
  /nix/store/hqj210bagnykmd8mj5l2cq9739m9pvfm-dotnet-vmr-10.0.0-rc.2
$ nix path-info result/ -r
/nix/store/0ja5daq2yay3svg6f48spyfby7pgy5bm-xgcc-14.3.0-libgcc
/nix/store/v5zyzcc8slz7w73s3wpgysd4z2grz6w0-libunistring-1.4
/nix/store/f04v56v4i3z0mrvl2npgcx5k5a792yjc-libidn2-2.3.8
/nix/store/daamdpmaz2vjvna55ccrc30qw3qb8h6d-glibc-2.40-66
/nix/store/llswcygvgv9x2sa3z6j7i0g5iqqmn5gn-openssl-3.6.0
/nix/store/mnd897flngivhxnw8sxznhrcwwc9vyk3-gcc-14.3.0-libgcc
/nix/store/z7a34j3xnp66rpddayyxrxwsahxccbip-gcc-14.3.0-lib
/nix/store/v72pwpdh1xnkkj73cck5ywfcwlmpsrr4-Microsoft.NETCore.App.Crossgen2.linux-x64-10.0.0-rc.2.25502.107

edit: oh, hang on, I think I know what's going on. None of the nuget packages are in the binary cache because they aren't recursed-into. That should be pretty easy to fix. I just never noticed because I always build VMR when doing upgrades, and they are trivial builds based on it.

17:30:44
11 Nov 2025
@whovian9369:matrix.orgWhovian9369

Nudging my issue where I can't run debug on an app via VS on my NixOS system. From what I'm aware, I should have all of the packages needed for it?
(I originally forgot to include the package list that I'm using for the environment, whoops!)

{
  devShells.${system}.default = pkgs.mkShell {
    env.DOTNET_CLI_TELEMETRY_OPTOUT = true;
    buildInputs = [
      pkgs.avalonia-ilspy
      pkgs.dotnetCorePackages.sdk_9_0
      pkgs.netcoredbg
      ( pkgs.vscode-with-extensions.override {
          vscodeExtensions = [
            pkgs.vscode-extensions.ms-dotnettools.csdevkit
            pkgs.vscode-extensions.ms-dotnettools.csharp
            pkgs.vscode-extensions.ms-dotnettools.vscode-dotnet-runtime
          ];
        }
      )
    ];
  };
};
05:38:21
@corngood:corngood.comCorngoodIt might be worth making an issue and pinging the maintainers. I don't personally use VS. Are there any more logs available? The one message you sent isn't clear about whether the debug server is missing or failing to start.14:05:00
@samuel:mnzn.devSamuel.NET 10 is out 🎉18:30:58
@whovian9369:matrix.orgWhovian9369Not immediately available, but I'll see what I can figure out regarding logs. Thanks for the thoughts! 19:31:58
@whovian9369:matrix.orgWhovian9369Oh, it looks like I may be encountering https://github.com/NixOS/nixpkgs/issues/44967920:23:35
12 Nov 2025
@emma:rory.gayEmma [it/its]i dont use VSC either12:29:17
@emma:rory.gayEmma [it/its] rider is mostly okay 12:29:36
@inayet:matrix.orgInayet changed their display name from inayet to Inayet.12:38:45
13 Nov 2025
@samuel:mnzn.devSamuelsomeone's opened a pr for the new releases: https://github.com/NixOS/nixpkgs/pull/46112010:15:04
@corngood:corngood.comCorngoodI've been working on one too. I should have mentioned it. I'll post it today and compare them.11:32:33
@corngood:corngood.comCorngoodI generally start on it when I get the release announcement. Unfortunately the update bot doesn't really work because of how the source and binary packages are coupled, but update.nix does usually work.11:34:32
@corngood:corngood.comCorngood

Mine is here: https://github.com/NixOS/nixpkgs/pull/461246

It would be great to get the update bot working. It actually does manage to update the binary packages most of the time, but we currently build the top level packages (e.g. dotnet-sdk_8) as a composite of the binary SDK and source-built runtime. This means that you need to update them at the same time, or it'll fail a version assert.

So like:

99acf9463aef dotnetCorePackages.dotnet_8.vmr: 8.0.21 -> 8.0.22
9cc88eb04523 dotnetCorePackages.sdk_8_0-bin: 8.0.415 -> 8.0.416

It'

13:59:42
@corngood:corngood.comCorngood *

Mine is here: https://github.com/NixOS/nixpkgs/pull/461246

It would be great to get the update bot working. It actually does manage to update the binary packages most of the time, but we currently build the top level packages (e.g. dotnet-sdk_8) as a composite of the binary SDK and source-built runtime. This means that you need to update them at the same time, or it'll fail a version assert.

So like:

99acf9463aef dotnetCorePackages.dotnet_8.vmr: 8.0.21 -> 8.0.22
9cc88eb04523 dotnetCorePackages.sdk_8_0-bin: 8.0.415 -> 8.0.416
13:59:56
@samuel:mnzn.devSamuel running nixpkgs-review now 14:01:48
@corngood:corngood.comCorngoodI had a brief look for examples of update scripts that deal with this sort of coupling, but I didn't find anything obvious. One method would be to make the composite SDK have an update script that calls both of the child ones.14:02:02
@samuel:mnzn.devSamuel Dang, that's a chonky rebuild, pulling ≈20GB from the cache, that's ≈60GB uncompressed 14:06:17
@corngood:corngood.comCorngoodBuilding all this stuff is too expensive for nixpkgs-review-gha, so I'm not sure if the update bot would even be able to do it... I'm also running a review btw, on x86_64-linux.14:06:42
@corngood:corngood.comCorngoodAnd then I usually do a darwin one from the community builder after that.14:07:02
@samuel:mnzn.devSamuelI'm running on an 8C/16T ryzen server and it still takes a long time every update 🙃14:08:19
@samuel:mnzn.devSamuelMostly due to a full webkit build somewhere down the dependency graph14:09:34
@corngood:corngood.comCorngoodVMR 10 already failed for me... Looks like some sort of change to the output structure :| Why is there a webkit build? Something that's currently broken on master?14:10:55

Show newer messages


Back to Room ListRoom Version: 9