nmattia / niv

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

source with .nix files (in addition as option) #285

Open InLaw opened 3 years ago

InLaw commented 3 years ago

In addition to source__pkg.json I would like to add default.nix (or vscode.nix) files

Especially useful because PyPi packages in Python get transformed into .nix files from projects like pynixify and nixpkgs-pytools ( or pypi2nix)

refnil commented 3 years ago

Hi @InLaw, I don't understand what your proposition.

Let's say we have the following situation:

$ ls nix
sources.json sources.nix pixify.nix

The first two files are managed by niv as usual and pixify.nix is generated by pynixify. Do you expect niv to also create a default.nix to merge sources.nix and pixify.nix? Do you want sources.nix to include pixify.nix in some way?

Would this feature pass the dependencies fetched from nix to the other files? Like you'd probably want to use the version of nixpkgs from niv in pixify.nix.