help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: calculate hashes for a new packages


From: Zelphir Kaltstahl
Subject: Re: calculate hashes for a new packages
Date: Wed, 10 Mar 2021 21:22:43 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

Hi Leo!

On 3/10/21 8:21 PM, Leo Famulari wrote:
> On Wed, Mar 10, 2021 at 08:14:43PM +0100, Zelphir Kaltstahl wrote:
>> How does one calculate the hash for a package one wants to add to GNU Guix?
>>
>> I know 2 ways, giving me different results. One is for the repository folder 
>> and
>> one is for the tarball:
>>
>> ~~~~
>> guix hash --exclude-vcs --recursive .
>> guix hash PACKAGE-VERSION-tar.gz  # a tarball created by guile-hall
> Can you clarify your question?
>
> It seems to me that you already know the answer: You use the method that
> is appropriate for your package. It depends on what kind of source code
> your packages uses.

I have a GNU Guile package, which I created using guile-hall.

I know the 2 commands, but maybe there are others?

I don't know which one of the 2 results (they differ) from the 2 commands one
should write in ones package definition to add to guix/gnu/packages/guile.scm. I
can paste any hash there, but which one will be the correct one? Both commands
seem appropriate to me. The tarball is after all built from the sources in the
directory and I could calculate the hash of the directory, or the one of the
tarball. That is what confuses me.

Basically I am asking for a general guideline. How is it usually done? How is it
done for packages created using guile-hall?

I don't want to send in a patch with a wrong hash in the package definition,
which only costs time for anyone, who reviews.

Regards,
Zelphir

-- 
repositories: https://notabug.org/ZelphirKaltstahl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]