From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uBbzLqkqwV79AQAA0tVLHw (envelope-from ) for ; Sun, 17 May 2020 12:14:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EEzdKqkqwV4WNwAAB5/wlQ (envelope-from ) for ; Sun, 17 May 2020 12:14:33 +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 91199940B0D for ; Sun, 17 May 2020 12:14:32 +0000 (UTC) Received: from localhost ([::1]:54700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jaIBa-0006tb-DM for larch@yhetil.org; Sun, 17 May 2020 08:14:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaIBT-0006tU-Gy for help-guix@gnu.org; Sun, 17 May 2020 08:14:23 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:55687) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaIBR-0001kl-RH for help-guix@gnu.org; Sun, 17 May 2020 08:14:23 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 6F51359B5; Sun, 17 May 2020 08:14:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 17 May 2020 08:14:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantherx.org; h= date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=fm2; bh= 1SofkJEJtAV+EztFoN7RphWG49FA9EDP7W6v1/mJtCI=; b=htZYWa4q2lt/IxjT qUQQAfaP6DPKBiAnNHuf8dtc2D4ycP+KnoTT/dtOGBYvZpVOqZiJ2HTg+q2jKARP wj6R4jdL1AVrVMKf+/doRkGttf7FT2/6zyQXLx61qtk+8/qTnI4Ta5tPo7ByBc/p iGfTce36oBzYlbaKOhHWS7VO7dAlBB/v8cZuhdGmzkknMlZ40V/IHYZvkDpEPYhs UVnFdbveJb3eBuvhDlx+h1ASvSV53Lu5I4Zmycn5136NP0EogEP2KkurhqrS9w2z yYTxB/BiwurQP/zspxcgggtRor0jjDYVE53O5myh3QpAfm5FzaHOg3UFyuj4cwhy mG4d1g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=1SofkJEJtAV+EztFoN7RphWG49FA9EDP7W6v1/mJt CI=; b=UAzXzhNkd/QMwwgoxQ8VsfDzvPiGg+M5gMvBzqvjxqabxmPopFKwbNUFB +UWst4Zxb+JdBswHtsyP/GGlbsCIiSnvVZK1+9h+Jfz0udl6DVFCXAEGuV+E07CR CUQsKsnQDi7uQRgrVlIwTdtLcrcYcI6qVImpECqTnaXAXoL/Qj7eDMzsagSOimiY ztVIE1nPufryBISx/o99OG9h8aoZ0k9ZbNZG4pfPa1Xrtcx+tHwvo/cLzE/I0ePy IQ3Bl1qkVO99qHIvw/KSEzXvEWFZVcvXSTlOtS1NDLz/5161oTJVgOE7bvw1ywV2 OwPtCxdxMkB+ohbOQK3wRBVPFj9bA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddtfedggeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfgjfhhoofggtgfgsehtjeertdertddvnecuhfhrohhmpeftvgii rgcutehlihiirgguvghhucforghjugcuoehrrdhmrghjugesphgrnhhthhgvrhigrdhorh hgqeenucggtffrrghtthgvrhhnpeduhedttdeigfduieevfeejudfgudekhefggeegvdev feejjeeuieegheehleehleenucfkphepledurddukeegrdeihedruddunecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhdrmhgrjhgusehprghn thhhvghrgidrohhrgh X-ME-Proxy: Received: from pantherarch.localdomain (unknown [91.184.65.11]) by mail.messagingengine.com (Postfix) with ESMTPA id A096230663BD; Sun, 17 May 2020 08:14:16 -0400 (EDT) Date: Sun, 17 May 2020 16:44:10 +0430 From: Reza Alizadeh Majd To: "Pierre-Henry F." Subject: Re: sha256 base32 value of a git checkout Message-ID: <20200517164410.2c9f2d0f@pantherarch.localdomain> In-Reply-To: References: Organization: PantherX X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=64.147.123.25; envelope-from=r.majd@pantherx.org; helo=wout2-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/17 08:14:18 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_H4=0.001, RCVD_IN_MSPIKE_WL=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: , 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=pantherx.org header.s=fm2 header.b=htZYWa4q; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=UAzXzhNk; 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: wDAkpKeTwnUS On Sun, 17 May 2020 12:00:38 +0000 "Pierre-Henry F." 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