Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: niv-sources.toml #398

Open
koraa opened this issue Apr 18, 2024 · 1 comment
Open

Feature request: niv-sources.toml #398

koraa opened this issue Apr 18, 2024 · 1 comment

Comments

@koraa
Copy link

koraa commented Apr 18, 2024

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:

  • The name is kind of non-specific. It would be good to use a more specific name ("niv-sources.json" or "nix-sources.json") so this name will never collide with any other projects using a "sources.json"
  • How about a toml file so the file will look prettier in the git history and become easier to hand-edit?
@nmattia
Copy link
Owner

nmattia commented May 23, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants