unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Reza Alizadeh Majd <r.majd@pantherx.org>
To: "Pierre-Henry F." <contact@phfrohring.com>
Cc: "help-guix\\@gnu.org" <help-guix@gnu.org>
Subject: Re: sha256 base32 value of a git checkout
Date: Sun, 17 May 2020 16:44:10 +0430	[thread overview]
Message-ID: <20200517164410.2c9f2d0f@pantherarch.localdomain> (raw)
In-Reply-To: <XDUibtHRH-2VhBzb_Uq9I6oKlaVJ-2MxpdX2V9gIMgwRW8b4K6uMhVZ9uPNGY6ejJ2tiLGQ6t0Do7co6XoByW-Q3HongvCHfKzDGGh4GIaY=@phfrohring.com>

On Sun, 17 May 2020 12:00:38 +0000
"Pierre-Henry F." <contact@phfrohring.com> 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	other threads:[~2020-05-17 12:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-17 12:00 sha256 base32 value of a git checkout Pierre-Henry F.
2020-05-17 12:14 ` Reza Alizadeh Majd [this message]
2020-05-17 15:08   ` Pierre-Henry F.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200517164410.2c9f2d0f@pantherarch.localdomain \
    --to=r.majd@pantherx.org \
    --cc=contact@phfrohring.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).