4 ms·
Niv is fine and good but there's a lot that it will never provide, like the ability to `nix run` packages or `nix flake show` what your project provides with on
by biggestlou 3y ago
Niv is fine and good but there's a lot that it will never provide, like the ability to `nix run` packages or `nix flake show` what your project provides with only a URL in hand.
- setheron 3y agoYou can still `nix run` packages using niv -- no clue what you talking about. You can also just look at the niv sources.json file pretty easily if you knew the URL. Rather trivial command to run. I don't find the above compelling (or correct?)
- biggestlou 3y agonix run github:DeterminateSystems/flake-checker What's the Niv equivalent of this?
- setheron 3y ago# non-flake $ nix run -f https://github.com/fzakaria/mvn2nix/archive/master.tar.gz https://github.com/fzakaria/mvn2nix/archive/master.tar.gz --command mvn2nix # flake $ nix run github:fzakaria/mvn2nix#mvn2nix
- biggestlou 3y agomvn2nix is a flake, though. How would I run a project that uses Niv and isn't a flake?
- setheron 3y agoI actually support both by having default.nix At this point I recommend we take this through another medium like email or feel free to open up a discourse to help fill in the knowledge gap. Feel free to tag me on it.
- pxc 3y agoThe -f is for 'file', and when you point it at a directory or repo/archive path, it resolves to a default.nix file rather than a flake.nix file.