[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sha256 base32 value of a git checkout
From: |
Pierre-Henry F. |
Subject: |
Re: sha256 base32 value of a git checkout |
Date: |
Sun, 17 May 2020 15:08:16 +0000 |
It worked!
Thanks!
phf
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Sunday, May 17, 2020 2:14 PM, Reza Alizadeh Majd <address@hidden> wrote:
> On Sun, 17 May 2020 12:00:38 +0000
> "Pierre-Henry F." address@hidden wrote:
>
> > Hello,
> > I'm trying my hand on defining a package.
> > I have a source defined as in:
> > (origin
> > (method git-fetch)
> > (uri "some/git/dir")
> > (commit "acommit")
> > (file-name "a_filename")
> > (sha256 (base32 "XXX")))
> > when origin resolves to an archive, guix download $url gives the
> > value of "XXX" but when using git-fetch... how to get the value of
> > "XXX" ?
> > Thanks,
> > phf
>
> Hi,
>
> you can calculate directory hash recusrsively using guix with this
> command:
>
> `guix hash -rx /path/to/directory`
>
>
> ------------------------------------------------------------------------------------------------------------------------
>
> Reza Alizadeh Majd
> PantherX Team