[Nix-dev] fetchFromGithub

Vladimír Čunát vcunat at gmail.com
Mon Jun 1 08:27:18 CEST 2015


On 06/01/2015 04:13 AM, Eric Seidel wrote:
> If you're trying to automate things, I bet github provides an API to get
> the latest revision or tag. Still an extra network request, but not as
> bad as cloning the whole repo. 

There's no real need for a separate api call. Just provide a tag/branch
name instead of the revision, e.g.:

nix-prefetch-zip https://github.com/NixOS/nixpkgs/archive/master.tar.gz


Vladimir


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3251 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150601/850414d4/attachment.bin 


More information about the nix-dev mailing list