| 1 Jan 2025 |
GGG | I haven't tested outside of nixpkgs but it *should* work on any nix file as long as it can find `nugetDeps = ...` | 02:25:42 |
Whovian9369 | It's not, but it's just tedious as hell considering $ fd --type=f deps | wc -l says that I have 31 files -- Subtract a few (like the deps.json that I have for a Ghidra plugin or my "backup" deps.nix files that I never got around to deleting) and it's not an insignificant amount of work 😅 | 02:29:13 |
Whovian9369 | That's interesting, thank you! | 02:29:22 |
Daniel | In reply to @gggkiller:matrix.org There's the script I wrote to do the treewide change in nixpkgs if you want: https://gist.github.com/GGG-KILLER/3a52e6244bbd14dd38e27f115e0ad2d6 Unfortunately, the script only works with experimental Nix feature 'nix-command' ... Until now I have always created my deps as follows, is there also a tool for json?
nuget-to-nix $HOME/nuget_pkgs > deps.nix | 12:20:33 |
| NixOS Moderation Botchanged room power levels. | 14:26:34 |
Whovian9369 | I believe you would just do > deps.json instead. | 15:40:52 |
Whovian9369 | $ 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 | 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 | 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 | Isn't it `nuget-to-json` now? | 16:04:27 |