Nix + dotnet | 113 Members | |
| 23 Servers |
| Sender | Message | Time |
|---|---|---|
| 24 Oct 2025 | ||
| (I needed to do this anyways at some point, but I thought it was smarter to leave out that part for later. Probably wasn't.) | 13:18:14 | |
| Either way this is what I have right now:
| 13:19:08 | |
| And it gets me this far:
| 13:20:12 | |
| I would have thought that the package is part of aspnet, but either it isn't or I'm adding dependencies incorrectly | 13:20:42 | |
You probably need to add nuget deps: nugetDeps = ./deps.json, and then run $(nix-build -A [pkg].fetch-deps) | 13:23:59 | |
Also putting aspnetcore_9_0 in buildInputs is unusual. You might just want to use it for dotnet-runtime. | 13:26:10 | |
| That seems like some great piece of tooling. Right now it fails because of some proprietary dependency from our partner, but it did download a bunch of packages that seemed sensible | 13:32:39 | |
Sorry, that sounded sarcastic, I meant it seriously 😅 and thanks for your help so far | 13:41:53 | |
| Can I point the fetch-deps to a custom nuget server for some packages? Or at least pass it a NuGet.config that has the custom server configured? | 13:46:14 | |
Ohh. I think if I name it properly (nuget.config instead of NuGet.config) it detects it automatically. | 13:53:13 | |
| Did you get a complete deps.json then? | 14:09:51 | |
| 27 Oct 2025 | ||
No, the fetcher failed and didn't create a deps.json. I'll try again soon when I get the complete closed source dependencies from our partner | 08:32:51 | |
| 2 Nov 2025 | ||
| question, how do i use the fetchdeps thing with the nix cli? | 19:31:00 | |
| doing a | 19:31:45 | |
In reply to @emma:rory.gayYou can't use .# because that'll be a read-only copy. Try -f . instead | 19:33:03 | |
| oh apparently you can just pass a path... lol | 19:33:05 | |
| that fails because i dont have a default.nix... lol | 19:33:38 | |
| You can pass a .nix file path instead of . | 19:34:14 | |
| i have a flake.nix | 19:34:26 | |
| thats the only .nix file i have | 19:34:29 | |
| (i dont want to maintain 6 identical copies of the same file when they only differ in at most 2 lines) | 19:35:22 | |
| Oh, you can also pass a path to fetch-deps itself to override it. That might be easiest | 19:35:27 | |
| yep discovered that one already | 19:35:38 | |
| but i guess that's my best bet | 19:35:44 | |
| Yeah otherwise you need to do an impure eval, maybe using flake compat or something. Passing the path is probably easiest. | 19:37:12 | |
| hm, i wonder what the best way would be to use nix to publish nuget packages | 19:53:00 | |
since packNupkg emits multiple nupkg files, im not sure how ot best deal with thta | 19:53:31 | |
also wondering how to best handle versioning, since my current ci setup uses current time for that | 19:58:31 | |
that's my current ci setup, that i'd like to get rid of | 19:59:17 | |
| 20:09:36 | ||