[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: guix hash of source from git repository.
From: |
Ludovic Courtès |
Subject: |
Re: guix hash of source from git repository. |
Date: |
Mon, 06 Mar 2017 11:55:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Catonano <address@hidden> skribis:
> Hi Dmitry,
>
> 2017-02-21 22:19 GMT+01:00 Dmitry Nikolaev <address@hidden>:
>
>> When writing package definition, what if I download sources from git
>> repository? For example:
>>
>> (define-public libwebsockets
>> (package
>> (name "libwebsockets")
>> (version "1.3")
>> (source (origin
>> ;; The project does not publish tarballs, so we have to take
>> ;; things from Git.
>> (method git-fetch)
>> (uri (git-reference
>> (url "git://git.libwebsockets.org/libwebsockets")
>> (commit (string-append "v" version
>> "-chrome37-firefox30"))))
>> (sha256
>> (base32
>> "12fqh2d2098mgf0ls19p9lzibpsqhv7mc5rn1yvrbfnazmcr40g4"))
>> (file-name (string-append name "-" version))))
>> ...
>>
>> How do I calculate this 12fqh2d...?
>>
>> Dmitry Nikolaev
>>
>
> You clone the git repository locally, then you use 'guix hash' as explained
> in this page of the manual (the option you want to use is "--recursive")
>
> https://www.gnu.org/software/guix/manual/html_node/Invoking-guix-hash.html
Specifically, ‘guix hash -rx .’ on a fresh clone, as shown at the
bottom of this page.
Ludo’.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: guix hash of source from git repository.,
Ludovic Courtès <=