andir / npins

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

Support Nix channels #18

Closed andir closed 2 years ago

andir commented 2 years ago

We should support nix channels. Those are/were the actual official way to distribute revisions of a channel.

It esentially boils down to:

$ curl -s -i https://nixos.org/channels/nixos-21.11 -L | grep -i '^location:' 
location: https://channels.nixos.org/nixos-21.11
location: https://releases.nixos.org/nixos/21.11/nixos-21.11.335037.e67c94a1adb

We should then prefetch the file https://releases.nixos.org/nixos/21.11/nixos-21.11.335037.e67c94a1adb/nixexprs.tar.xz.

piegamesde commented 2 years ago

I'd be willing to give it a shot after the current PR backlog has been processed (there are too many pending refactorings that will guarantee merge conflicts right now).