From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GFeTIHJTwV6TFgAA0tVLHw (envelope-from ) for ; Sun, 17 May 2020 15:08:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +P9tHHJTwV6qFwAAbx9fmQ (envelope-from ) for ; Sun, 17 May 2020 15:08:34 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0807A94036C for ; Sun, 17 May 2020 15:08:34 +0000 (UTC) Received: from localhost ([::1]:49358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jaKu1-0004kw-0P for larch@yhetil.org; Sun, 17 May 2020 11:08:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaKtr-0004jp-CH for help-guix@gnu.org; Sun, 17 May 2020 11:08:24 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:63488) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaKtp-000463-U4 for help-guix@gnu.org; Sun, 17 May 2020 11:08:22 -0400 Date: Sun, 17 May 2020 15:08:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=phfrohring.com; s=protonmail; t=1589728098; bh=LOFaMx2/uLa7UC89luvaeWizco71pi/yuIZ7NzuBiso=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=047oPxXMT9FX6aA4hzERWZWoCjkJ0RYZ1Khp3aNpRlsu4xWoHM5thUtfi1AcYXdZj 5LE/dgd5A6nkoQt8WjVBeW862CLFKazjGCME+RAN9fIMFwvjBRQVHhntB7BCLJ2bDZ zJB9GY9Go3qtfGby9VtJIZ8EJ3il37LIIDkCHNhg= To: Reza Alizadeh Majd From: "Pierre-Henry F." Subject: Re: sha256 base32 value of a git checkout Message-ID: In-Reply-To: <20200517164410.2c9f2d0f@pantherarch.localdomain> References: <20200517164410.2c9f2d0f@pantherarch.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.22; envelope-from=contact@phfrohring.com; helo=mail2.protonmail.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/17 11:08:19 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: "Pierre-Henry F." Cc: "help-guix\\\\@gnu.org" Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=phfrohring.com header.s=protonmail header.b=047oPxXM; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -1.21 X-TUID: DoWE6tyPEQWB It worked! Thanks! phf =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Sunday, May 17, 2020 2:14 PM, Reza Alizadeh Majd w= rote: > 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