-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nix-prefetch-github? #21732
Comments
There is no such wrapper, but I would be happy to merge it.
Implementation details can be looked up here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L194 |
Related: #21734 |
If it's just updating the sha256 then |
Closing because we already have |
This method is not documented as far as I know. |
Agreed - we should change docs at least. |
Does |
At least two bits:
|
@domenkozar What does the -A flag do? |
|
Impure world might not have: a) access to Nix expressions so |
Hi, I wrote a little something to prefetch github sources. Check it out here: seppeljordan/nix-prefetch-github or install it from pypi. |
Added in #39214. |
(installing via if I |
@nrolland From what I've seen it just downloads the source and computes the hash, but it does not add it to the nix-store. |
Closing. Such a program was added in #39214. |
Just wondering: Is there a
nix-prefetch-github
command somewhere?Imaginary example:
Just thinking this could be very handy for automatically generating sources lists e.g. if you want to be able to address all releases of a given project. Just to avoid the busy-work of manually translating the branch/tag to a revision id and "use a fake sha256, get real sha256 from error message, copy-paste and build again" dance.
The text was updated successfully, but these errors were encountered: