!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

124 Members
24 Servers

Load older messages


SenderMessageTime
25 Mar 2026
@sandro:supersandro.deSandro 🐧 #review-requests:nixos.org 19:06:04
1 Apr 2026
@onur-ozkan:matrix.org@onur-ozkan:matrix.org left the room.08:18:31
6 Apr 2026
@emma:rory.gayEmma [it/its]hm, i wonder if it's somehow possible to use a nix eval to get the path or at least filename of the nugetDeps json file13:07:56
@emma:rory.gayEmma [it/its] i could re-export the nugetDeps argument under a different name for myself, but that feels like a hack 13:11:46
@corngood:corngood.comCorngoodfetch-deps does something like that, so it should be possible 14:23:22
7 Apr 2026
@emma:rory.gayEmma [it/its] did some digging, if im understanding it right, the path to the nuget deps list isn't re-exported 08:07:51
@emma:rory.gayEmma [it/its]

https://github.com/NixOS/nixpkgs/blob/3d13509c6e00130246f5c482a18fa2a6179237e6/pkgs/build-support/dotnet/add-nuget-deps/default.nix

this imports the nuget package lock as is, replacing it in the derivation, and adds the nuget deps based on the original attributes

08:09:12
@emma:rory.gayEmma [it/its] so it seems that adding a __nugetDeps attribute to the derivation myself is the right call here 08:10:00
8 Apr 2026
@jammie:matrix.orgJamieMagee set a profile picture.03:42:57
9 Apr 2026
@emma:rory.gayEmma [it/its]hm, i wonder how to work around weird path resolution with the fetch deps script20:07:00
@emma:rory.gayEmma [it/its]
sh-5.3$  ./update-deps-Spacebar-Cdn-Worker-x86_64-Q8 Spacebar.Cdn.Worker/deps.x86_64-Q8.json
fetching dependencies for Spacebar.Cdn.Worker-x86_64-Q8-1.0.0-preview.20260406-122855
Running phase: unpackPhase
unpacking source archive /nix/store/dmrp0wjz109whwl353wjlxlziv3qriyg-source
source root is source
Running phase: patchPhase
Running phase: configureNuget
The template "NuGet Config" was created successfully.

Processing post-creation actions...



Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
Executing dotnetConfigureHook
MSBUILD : error MSB1009: Project file does not exist.
Switch: Spacebar.Cdn.Worker-x86_64-Q8.csproj
20:07:36
@emma:rory.gayEmma [it/its]wait, i think i may have footgunned myself20:12:53
@emma:rory.gayEmma [it/its]yep, i flipped 2 args in my project names lol20:15:58
13 Oct 2022
@winterqt:nixos.devWinter (she/her) joined the room.17:56:01
12 Nov 2022
@sg-qwt:nltrix.net321, jiayou! joined the room.09:31:11
@sg-qwt:nltrix.net321, jiayou! left the room.09:31:52
16 Nov 2022
@omlet:matrix.orgomlet joined the room.20:33:57
25 Nov 2022
@raphi:tapesoftware.netraphi changed their profile picture.19:41:53
1 Dec 2022
@hexa:lossy.networkhexa changed their display name from hexa to hexa (22.11 now).13:08:55
@hexa:lossy.networkhexa changed their display name from hexa (22.11 now) to hexa.14:38:43
12 Jan 2023
@daniel:nopemail.orgdaniel joined the room.12:58:04
@daniel:nopemail.orgdanielAnyone who has some experience with packaging a .NET-project using flakes? All prior art I’ve found seems to use the legacy way.13:02:55
@winterqt:nixos.devWinter (she/her)
In reply to @daniel:nopemail.org
Anyone who has some experience with packaging a .NET-project using flakes? All prior art I’ve found seems to use the legacy way.

flakes are the same way as the "legacy way," all flakes help with is exposing the package.

what trouble are you running into?

14:23:13
@daniel:nopemail.orgdaniel
In reply to @winterqt:nixos.dev

flakes are the same way as the "legacy way," all flakes help with is exposing the package.

what trouble are you running into?

How to "expose"/run fetch-deps
14:24:38
@winterqt:nixos.devWinter (she/her) just do nix build .#whateverPackage.fetch-deps 14:25:11
@daniel:nopemail.orgdanielI did that over and over, realized now that I of course called it with the wrong package name. Thanks though!14:29:12
@winterqt:nixos.devWinter (she/her)
In reply to @daniel:nopemail.org
I did that over and over, realized now that I of course called it with the wrong package name. Thanks though!
(was it not erroring?)
14:31:10
@daniel:nopemail.orgdaniel
In reply to @winterqt:nixos.dev
(was it not erroring?)
It was, but I thought that meant that somehow fetch-deps didn't pass through correctly.
14:33:24
17 Jan 2023
@daniel:nopemail.orgdanielFetch-deps doesn't seem to handle project references correctly, am I observing this right? The script wants to look for the project dependencies in the "nuget.org" source.11:07:33
@raphi:tapesoftware.netraphi in my experience <ProjectReference> just works, as long both the referring project and the referenced project are part of src
example: https://github.com/raphaelr/nugettest
if they are separated search for projectReferences in the nixpkgs manual
11:48:50

Show newer messages


Back to Room ListRoom Version: 9