nmattia / niv

Easy dependency management for Nix projects
https://github.com/nmattia/niv
MIT License
1.52k stars 74 forks source link

Feature request: niv-sources.toml #398

Open koraa opened 2 months ago

koraa commented 2 months ago

Thank you for working on an awesome usability related tool here; this is what we need to make nix more accessible!

I am evaluating ways to simplify dependency handling in Rosenpass. It is hard for me to figure out whether migrating our complex flake.nix to niv could be an option, but maybe it will be the right choice.

In any case, when I saw the sources.json file I noticed two issues:

nmattia commented 1 month ago

Hi @koraa,

Looks like I missed this.

The name is kind of non-specific.

Right, the idea was to keep things as simple as possible. That being said you can always use --source-file to specify another (JSON) file.

How about a toml file so the file will look prettier in the git history and become easier to hand-edit?

That makes sense! It would be fairly simple to implement. Might be a good project for the upcoming ZuriHac.

Hope this helps!