[Nix-dev] fetchFromGithub

Arseniy Seroka ars.seroka at gmail.com
Mon Jun 1 03:53:29 CEST 2015


With the help of `nix-prefetch-git` I can automatize some code generation.

2015-06-01 4:52 GMT+03:00 Kirill Elagin <kirelagin at gmail.com>:

> I believe everyone just puts some random hash and then copy-pastes the
> right one from the error message.
> (See also https://github.com/NixOS/nixpkgs/issues/6750)
>
> On Mon, Jun 1, 2015 at 4:44 AM Arseniy Seroka <ars.seroka at gmail.com>
> wrote:
>
>> Hello!
>> What is a proper way to get pkg's sha if I use `fetchFromGithub`?
>> I do `nix-prefetch-git https://github/repo/owner`
>> <https://github/repo/owner> to get latest
>> revision and hash sum. And use`fetchGit` in derivation.
>>
>> But now I want to switch to a right way of fetching from GH. But
>> how can I do this (get information about latest rev, date, sha256 etc.)
>> to use `fetchFromGithub`? It's hash sum is different than `fetchGit`.
>>
>> --
>> Sincerely,
>> Arseniy Seroka
>>  _______________________________________________
>> nix-dev mailing list
>> nix-dev at lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
>


-- 
Sincerely,
Arseniy Seroka
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150601/8f7c2bd8/attachment.html 


More information about the nix-dev mailing list