Nix + dotnet | 112 Members | |
| 23 Servers |
| Sender | Message | Time |
|---|---|---|
| 14 Dec 2025 | ||
In reply to @emma:rory.gayWe should probably just make the test based on this template project. I also haven't figured out the whole workload thing or how we can support it | 04:53:26 | |
| you shouldnt even need the workload | 06:16:39 | |
| i dont have the workload, and never had it (and no im not using anything special here) | 06:16:52 | |
dotnet publish -c Release -r browser-wasm | 06:17:01 | |
as soon as i remove browser-wasm it builds fine | 06:17:13 | |
* as soon as i remove browser-wasm it builds fine, but fails to restore specifically under nix with the fetch-deps script | 06:17:28 | |
| 16:43:30 | ||
| Hi folks, I can't seem to get the NuGet dependencies working (https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/dotnet.section.md#generating-and-updating-nuget-dependencies-generating-and-updating-nuget-dependencies). Using
Anyone experienced something similar? | 16:47:23 | |
I am trying to package this NBitcoin module for bitcoinfuzz: https://github.com/quapka/bitcoinfuzz/blob/build-with-nix/modules/nbitcoin/default.nix | 16:51:57 | |
| I would try to figure out what's going on with `fetch-deps`. What's the last output you see? | 17:38:23 | |
Would be nice to be able to use the lock file generated by the dotnet restore --use-lock-file... that one is almost immediate. | 17:43:02 | |
| 17:48:30 | |
In reply to @x408788:fi.muni.czIs the problem that it's not using the lockfile during the build? | 18:30:21 | |
| That one is not in the correct format, not a list. I haven't investigated further. | 18:37:51 | |
I am re-trying fetch-deps with dotnet 10, but so far it got "stuck" on the same dotnetConfigureHook. | 18:38:32 | |
| could be taking a while because it has to redownload all dependencies cleanly | 18:39:41 | |
Maybe, but that seems to have been already done. At least the very first line was these 36 derivations will be built and it finished rather quickly. | 18:40:44 | |
| fairly certain that's for building the script itself | 18:41:04 | |
| Dotnet RAM's usage is peaking around 20+GB. | 18:42:59 | |
| * Dotnet's RAM usage is peaking around 20+GB. | 18:43:06 | |
| And swap also full (there's not much else running). | 18:43:59 | |
| * And swap also full (there's not much else running other than dotnet). | 18:44:06 | |
| sounds like something is going horifically wrong 👀 | 18:44:12 | |
| I guess this could explain the fact that it does not end, but get's killed. | 18:44:45 | |
as far as i can tell it just uses nuget-to-json | 18:45:58 | |
https://github.com/NixOS/nixpkgs/blob/4f9edc162689feca1e63212e7d510679258bd12b/pkgs/build-support/dotnet/add-nuget-deps/fetch-deps.sh, there's the genericBuild. | 18:48:09 | |
Which somehow ends up running https://github.com/NixOS/nixpkgs/blob/4f9edc162689feca1e63212e7d510679258bd12b/pkgs/build-support/dotnet/build-dotnet-module/hook/dotnet-hook.sh#L7-L70Executing dotnetConfigureHook is the last output I get. | 18:48:38 | |
| This is the running dotnet process
| 18:50:40 | |
| yeah, seems to be hanging on trying to restore your project | 18:52:10 | |
I dunno if the --runtime osx-x64 should be the one. | 18:53:17 | |