Nix + dotnet | 113 Members | |
| 23 Servers |
| Sender | Message | Time |
|---|---|---|
| 7 Nov 2025 | ||
| in other news, since you maintain dotnet-vmr in nixpkgs: any reason why the build output contains tarballs of the {dotnet,aspnetcore}-runtime packages? i'm not too familiar with building dotnet from source | 03:27:50 | |
(particularly in the lib/Private.SourceBuilt.Artifacts.10.0.100-rc.2.25502.107.linux-x64/ directory) | 03:28:44 | |
In reply to @emma:rory.gayIt shouldn't be that big of a deal. You could for example set a package source mapping in preConfigure | 04:19:56 | |
| oh? how would i do that? | 04:20:40 | |
In reply to @emma:rory.gayThe vmr package shouldn't really be used directly if that's what you mean. Generally you want the runtime/sdk packages, which should have to references to it | 04:21:05 | |
| well yeah, im using the sdk package | 04:21:18 | |
| i was just surprised by the 2.4GB download of dotnet-vmr ^^' | 04:21:29 | |
| How is it being referenced? You shouldn't need it for the ask | 04:21:59 | |
| * How is it being referenced? You shouldn't need it for the sdk | 04:22:07 | |
| if nix-output-monitor isnt lying to me, it was for dotnetHook | 04:22:28 | |
In reply to @emma:rory.gayAdd it to nuget.config for the _nix source (I'm pretty sure that's what it's called. Look at the source mapping docs | 04:23:00 | |
| If anything has runtime deps on vmr that's bad. We should add some asserts for that | 04:23:46 | |
| 04:23:54 | |
tht was the dep graph according to nix-output-monitor | 04:24:13 | |
| no clue why it depends on crossgen2 either, i'm not cross-compiling, nor have AOT or similar enabled | 04:25:13 | |
| i should note that ive seemingly always had vmr with dotnet10 | 04:27:13 | |
| * i should note that ive seemingly always had vmr with dotnet-sdk_10 | 04:27:19 | |
| That will need some investigation and a disallowedReference I guess | 04:28:54 | |
| Maybe you can help me reproduce this. From your log it looks like it's building e.g. Crossgen2. That should be in the binary cache, and as far as I can tell, there's no runtime dependency on VMR. | 13:57:25 | |
| if you need something from me, let me know :) | 18:55:47 | |
| 19:07:17 | ||
| I just can't reproduce the requirement for vmr to be downloaded. If you can give me a way to reproduce it, that would be great | 19:55:18 | |
| hold on, let me go commit what i have right now | 21:34:53 | |
|
Corngood this is my current version | 21:38:24 | |
| with the flake being defined as... https://cgit.rory.gay/matrix/LibMatrix.git/tree/flake.nix | 21:38:46 | |
| fwiw, it does just seem to be a build time dependency, not a runtime one? | 22:00:12 | |
this is what | 22:08:33 | |
| hm, i was cleaning up and... now i have an infinite recursion issue, yay /s | 22:54:03 | |
| 8 Nov 2025 | ||
| Yeah, 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 | ||
| then im not sure why i'd need to download it? | 00:12:42 | |