!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

114 Members
23 Servers

Load older messages


SenderMessageTime
29 May 2025
@whovian9369:matrix.orgWhovian9369 Oh wait that is in buildPhase which would be what I'm actually trying to build, I somehow missed that. 14:27:16
@corngood:corngood.comCorngoodIt looks like `hactoolnet.csproj` hasn't been restored. Can you share the expression source?15:54:31
@whovian9369:matrix.orgWhovian9369One slight issue is that Upstream no longer exists, so I wish you luck finding a copy.15:56:14
@whovian9369:matrix.orgWhovian9369Download package.nix15:56:20
@whovian9369:matrix.orgWhovian9369Download deps.json15:56:20
@whovian9369:matrix.orgWhovian9369 I should have sent package.nix as a code block, and don't know why I didn't. 😅 Sorry about that! 15:57:21
@whovian9369:matrix.orgWhovian9369 So it seems that Nix/dotnet really doesn't like it if you run runHook preConfigure in preConfigure. Oops.
It's no longer segfaulting! 🎉
21:49:08
@whovian9369:matrix.orgWhovian9369 I never mentioned the issue in here, sorry about that. 😅
fetch-deps was segfaulting for some reason, and it looks like I fixed it when I removed the accidentally remaining runHooks.
21:54:47
1 Jun 2025
@seanthw:matrix.orgSean Thawe joined the room.23:47:40
4 Jun 2025
@purepani:matrix.orgpurepaniHey, I was wondering if there were any dotnet 4.8 runtime package definitions lying around. My work currently uses that runtime, and I wasn't able to find the runtime throughout any of the nixpkgs history: https://lazamar.co.uk/nix-versions/?channel=nixpkgs-unstable&package=dotnet-sdk 19:50:17
@purepani:matrix.orgpurepaniand the second I sent that I figured out the answer, being that dotnet 4.8 only works on windows19:51:30
@6pak:matrix.org6pak yup, mono might work though 19:52:31
5 Jun 2025
@vengmark2:matrix.org@vengmark2:matrix.org left the room.15:55:38
7 Jun 2025
@deeok:matrix.org@deeok:matrix.org changed their display name from deeok to matrixrooms.info mod bot (does NOT read/send messages and/or invites; used for checking reported rooms).22:44:35
@deeok:matrix.org@deeok:matrix.org left the room.23:56:18
9 Jun 2025
@sigmasquadron:matrix.orgSigmaSquadron joined the room.13:05:24
@whovian9369:matrix.orgWhovian9369I ran into this again - Why do so many people have paths in their repo with spaces in it?! 😅 Guess I'm asking again, any tips?20:43:00
@corngood:corngood.comCorngood
In reply to @whovian9369:matrix.org
I ran into this again - Why do so many people have paths in their repo with spaces in it?! 😅
Guess I'm asking again, any tips?
Did you mean to link to something? I guess you're talking about nuget-to-json working in paths with spaces?
21:23:52
@whovian9369:matrix.orgWhovian9369Yeah, I'm talking about that21:24:06
@whovian9369:matrix.orgWhovian9369 (nuget2json and not nuget2nix, whoopsies) 21:24:17
@corngood:corngood.comCorngoodAh yeah, I meant to fix that... I'll take a look21:26:46
@whovian9369:matrix.orgWhovian9369Please and thank you!21:31:14
@corngood:corngood.comCorngood

Oh, I misunderstood the problem (https://matrix.to/#/!bxVOQwsVoHhZcmNDGw:nixos.org/$KnL6pWRuimEgc9GUYpdlLgzRZP5DsobZi0wRoClxHls?via=nixos.org&via=matrix.org&via=nixos.dev) It's not actually anything to do with nuget-to-json, it's just buildDotnetModule.

I think you might be able to set __structuredAttrs = true; and have projectFile be treated as an array, which will stop the string splitting.

21:40:09
@whovian9369:matrix.orgWhovian9369I'll try that, thank you!21:43:13
@whovian9369:matrix.orgWhovian9369
$ ./fetch-deps deps.json
fetching dependencies for gms-explorer-0.1.0
structuredAttrs is enabled
Running phase: unpackPhase
unpacking source archive /nix/store/rka883hb7paai0r3f9b8l8ixzkgpd0g6-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
  Determining projects to restore...
  Nothing to do. None of the projects specified contain packages to restore.
  Determining projects to restore...
  Nothing to do. None of the projects specified contain packages to restore.
  Determining projects to restore...
  Nothing to do. None of the projects specified contain packages to restore.
  Determining projects to restore...
  Nothing to do. None of the projects specified contain packages to restore.
Finished dotnetConfigureHook
Succesfully wrote lockfile to /home/whovian/.flakes/gms-extract/deps.json

$  cat deps.json
[]

Well I think that it worked, but nothing was restored.

21:44:57
@whovian9369:matrix.orgWhovian9369I'm currently trying to get https://github.com/puggsoy/GMS-Explorer working, so it's my current guinea pig.21:45:26
@corngood:corngood.comCorngoodWhat did you set `projectFile` to?21:50:34
@whovian9369:matrix.orgWhovian9369 projectFile = "GMS Explorer/GMS Explorer.csproj"; 21:55:37
@whovian9369:matrix.orgWhovian9369 Same thing happens with projectFile = "GMS Explorer.sln"; 21:55:45
@corngood:corngood.comCorngoodThat's an old style project, so it probably doesn't use nuget dependencies. It might not build with the dotnet sdk22:57:42

Show newer messages


Back to Room ListRoom Version: 9