andir / npins

Nix dependency pinning. Very similar to Niv but has a few features that I personally wanted.
European Union Public License 1.2
164 stars 12 forks source link

Support fetchSubmodules for git/github #45

Closed LunNova closed 2 weeks ago

LunNova commented 1 year ago

Some projects need submodules to build, npins doesn't seem to support this.

Example where this came up: https://github.com/fufexan/nix-gaming/pull/86

piegamesde commented 1 year ago

The git source type tries to use tarballs when pulling from GitHub or GitLab, and those don't provide submodules. So the option would probably only be there for generic git repository URLs. But I'll try to give it a look.

Alternatively, since builtins.fetchGit does not seem to take a hash, maybe adding an override method to inject custom parameters would be an idea?

adamcstephens commented 6 months ago

I just ran into this trying to pin river master which needs submodule support.

bwkam commented 2 months ago

Any updates on this?