nmattia / niv

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

niv add --sources-file does not work #243

Closed shmish111 closed 4 years ago

shmish111 commented 4 years ago

I want to use niv with a different sources location which I can do with niv init -s ./nix/other-sources.json however I can't then specify this alternative sources for niv add (and in the future niv update).

nmattia commented 4 years ago

I think --sources-file is a global option; I'm actually surprised niv init -s ... works. Can you try specifying -s before the command, i.e. just after the exe name? niv -s foobar.json add ...

nmattia commented 4 years ago

Closing for now, feel free to re-open if this is still a problem.