help-guix
[Top][All Lists]
Advanced

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

Re: sha256 base32 value of a git checkout


From: Reza Alizadeh Majd
Subject: Re: sha256 base32 value of a git checkout
Date: Sun, 17 May 2020 16:44:10 +0430

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



reply via email to

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