!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

127 Members
24 Servers

Load older messages


SenderMessageTime
1 Jan 2025
@whovian9369:matrix.orgWhovian9369 I believe you would just do > deps.json instead. 15:40:52
@whovian9369:matrix.orgWhovian9369
$  nix build -L .#ndecrypt-git
warning: Git tree '/home/whovian/.flakes/nix-game-preservation' is dirty
error:
       … while evaluating an expression to select 'drvPath' on it
         at «internal»:1:552:
       … while calling the 'derivationStrict' builtin
         at «internal»:1:208:
       (stack trace truncated; use '--show-trace' to show the full trace)

       error: syntax error, unexpected end of file, expecting expression
       at /nix/store/qg2pdhwccz82apli9d6kc4r7agp04bza-source/ndecrypt/deps-git.json:1:1:

Is there a realistic solution to avoiding this issue when trying to build the deps file?

15:42:11
@whovian9369:matrix.orgWhovian9369 The issue's come up quite often for me with deps.nix but now it's appearing with deps.json for me as well, which is a bit frustrating for likely obvious reasons. 15:42:46
@whovian9369:matrix.orgWhovian9369 So it looks like the answer is to fill in src.hash first, or work around it by doing nix build -L .#ndecrypt-git.src (for example) first. 15:56:51
@corngood:corngood.comCorngoodIsn't it `nuget-to-json` now?16:04:27
@whovian9369:matrix.orgWhovian9369Right, nice catch.16:04:56
@whovian9369:matrix.orgWhovian9369 * I believe you would just do nuget-to-json $HOME/nuget_pkgs > deps.json instead. 16:05:12
@whovian9369:matrix.orgWhovian9369Edited my above message 16:05:18
@genga898:matrix.orgEmmanuel GengaDoes fetch-deps still work the same if I set the output file to deps.json?19:39:33
@corngood:corngood.comCorngood
In reply to @genga898:matrix.org
Does fetch-deps still work the same if I set the output file to deps.json?
Yeah, it should do
19:43:08
2 Jan 2025
@zumorica:matrix.orgVera left the room.11:48:08
9 Jan 2025
@gggkiller:matrix.orgGGGimage.png
Download image.png
13:01:47
@gggkiller:matrix.orgGGG 6pak: got back to looking at patchcil and I found where it lists the paths for native dependencies: 13:01:49
@gggkiller:matrix.orgGGG * 6pak: got back to looking at patchcil and I found where it lists the paths for native dependencies 13:01:52
@gggkiller:matrix.orgGGGbut it seems like after the build, it just copies them to the root13:02:42
@gggkiller:matrix.orgGGGimage.png
Download image.png
13:02:44
@gggkiller:matrix.orgGGG so I don't know if we really need to read .deps.json or not, but I guess I'll implement it regardless 13:03:15
@gggkiller:matrix.orgGGG seems like no packages have the runtime/{rid} in their output either: 13:12:36
@gggkiller:matrix.orgGGGimage.png
Download image.png
13:12:39
@6pak:matrix.org6pakI forgot it will get flatten out when building for a specific RID, yeah15:49:48
@6pak:matrix.org6pakwhat does the deps.json point to in that case?15:49:57
@6pak:matrix.org6pakstill a runtimes/whatever directory or to root?15:50:10
@6pak:matrix.org6pak(it will have root in search path regardless so it could be either I guess)15:50:34
@gggkiller:matrix.orgGGG
In reply to @6pak:matrix.org
still a runtimes/whatever directory or to root?
I mean, there's the runtime dir in .deps.json so I'll add that to the search path instead of doing the manual search in there as it could be literally anywhere
15:52:14
@gggkiller:matrix.orgGGGBut idk if it adds to the search path only for that assembly or all of them15:52:32
@6pak:matrix.org6pakfor the assembly load context afaik15:52:50
@gggkiller:matrix.orgGGGI see15:53:02
@6pak:matrix.org6pakso unless the program creates a new one, it will be for all15:53:03
@6pak:matrix.org6pak* so unless the program creates a new (isolated) one, it will be for all15:53:45
@gggkiller:matrix.orgGGGThat's rather annoying, because then native library resolution is dependent on control flow15:53:46

Show newer messages


Back to Room ListRoom Version: 9