From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oKy4GL9JWGBMawAA0tVLHw (envelope-from ) for ; Mon, 22 Mar 2021 07:39:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OApjFL9JWGC+IgAAbx9fmQ (envelope-from ) for ; Mon, 22 Mar 2021 07:39:43 +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 A22B62E5CF for ; Mon, 22 Mar 2021 08:39:42 +0100 (CET) Received: from localhost ([::1]:56780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOFA5-0002xB-OI for larch@yhetil.org; Mon, 22 Mar 2021 03:39:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOF9k-0002vd-Ar for guix-devel@gnu.org; Mon, 22 Mar 2021 03:39:20 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:53683) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOF9h-0000YH-4d; Mon, 22 Mar 2021 03:39:20 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 1DE095C014F; Mon, 22 Mar 2021 03:39:16 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 22 Mar 2021 03:39:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type:content-transfer-encoding; s=fm3; bh= dlbSWgI86q2MPFJeU2Hqfi2koVbWL5RbbwMlVtd1ybE=; b=koBUrRUFeBAlOFvV gqgFIu9cAx816FmY1R3Hmn1yxa06QbzVpmP/OPCbPPXAP/sa0kip5lo314BrroRm RnNhvyDyUyXznuAUKctn1CRrjEE9P4GuWQg0VUcA3hrBhC8k86HvU63UxTmz+K5m R9SHVIVwtljOm5/0VRAAuwSBxHHdHmQVSPi9RMZuAETB+GfZTZ1062u60wRRhTch P+nqKpouw8J70HcYAeTL/MpvBwu86rLvN0YAvBP+zeQzSeCbx11h8NLzIShtZm+1 dClOXM4McC5JtKa3ThAx2tRuWkmXPjbqVMXRQ829ZwW2VFP/JP1lMODDXhiMKJnR i+wy9w== 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=dlbSWgI86q2MPFJeU2Hqfi2koVbWL5RbbwMlVtd1y bE=; b=HS0y1LWDOkWzGcz7fhzowHbCFLuftjhJcGMjuFyA5OAkqfhRzIE4c+gy3 7fLqaqvy10kfcV9nXNk3ipPDdKsJHDsW4luOVAMRyeKmeWZOUkGg/UhTaXGVf6+7 gTskKfNp8HhubKM7jXd+hEsQn4hGEkDv7f55uwB0oxFsRd4p3bE0JbVpmxWQ7Dfo 9Ni2Sa7z8hhGU6Rxmw0FGZObsvTpaP7VYAVVJagCjqEIdpKAB+jz6AAPe4V6cKAD 0SWUBa8jv37pUOf1qJev+w42TPkel4aP8VvUS1hG/QQUcAiEDthJPzHUDSY+Wxoq D8qoCxAkiHKD43LufFsPP9geslSoQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudegfedgudduudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffujghffffkgggtgfesthhqredttddtjeenucfhrhhomhepmfhonhhr rgguucfjihhnshgvnhcuoehkohhnrhgrugdrhhhinhhsvghnsehfrghsthhmrghilhdrnh gvtheqnecuggftrfgrthhtvghrnhepieehueehtdeguddvieekteekffffveffhfeikeeu heetkeeigfejveejtdejgfeknecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkph epkeeirddvgeejrdegkedrheeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepkhhonhhrrggurdhhihhnshgvnhesfhgrshhtmhgrihhlrdhnvg ht X-ME-Proxy: Received: from ordinateur-de-catherine--konrad.home (lfbn-idf2-1-840-58.w86-247.abo.wanadoo.fr [86.247.48.58]) by mail.messagingengine.com (Postfix) with ESMTPA id 595E41080063; Mon, 22 Mar 2021 03:39:15 -0400 (EDT) From: Konrad Hinsen To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: Finding the store path of a package In-Reply-To: <8735wq7xb4.fsf@gnu.org> References: <864kh9ws7z.fsf@gmail.com> <8735wq7xb4.fsf@gnu.org> Date: Mon, 22 Mar 2021 08:39:13 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=66.111.4.27; envelope-from=konrad.hinsen@fastmail.net; helo=out3-smtp.messagingengine.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616398783; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=dlbSWgI86q2MPFJeU2Hqfi2koVbWL5RbbwMlVtd1ybE=; b=EfTCM+DiwnFgtxk56hg/eXgRXzsi1BvYKszjbSmP3dmh5cvdyeXMWQxuP1HAnbumL9G0Wi 1lHgFIN2491HIJzRn9Pa/VmglQWceCQl1+5KjN2nVekgZK2iXoVucPoMy2CQ7RnxFHShDC VKTdKkl4DHFLDDZS0Pngm5VU3KilbVpDRSiaslrVVIt5vzdDGuXvbs/jk9JJD95NHvojy2 9hs8H7kOXO15YwcdRPIk8DR2rizu5+LcHwqSBcOJbSw4myXzy2K9WCq2vpL0CHIPKLulQy NHYYi1JHDih8a9IDz4bB61BNpWFtfGF7FCegEGh/Wnn40dexD/SU+Pdw+tGiYw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616398783; a=rsa-sha256; cv=none; b=fXCbR9M/CrWCkdc4GBq1KIgPmw5QaKTM9fQL+eJhsoLQAk1bXYUh84d5XxG+bZSZvitnFV DRnMO8XyAJSUIDDIFddTynP7XmE0XsW9nUl50cZQAFRI5QYmZ9m2GDQ0OHcfoibHvllbcs ydhCcYgpuJvye1eBKeQzeYdemB10KnrCiaIXdCFskiSVw3m/YOijNzmwEpoNwP+KFANRUF gGbOsIzSEouDGXMeVsz4E2CRoM/+dac2M9Iu/PGunrbGkuZzkR9/ScYZfb5QgKjzle4Igg 9nEH/gPeUU1JccrgABfXa1EI9T5pM7kKPdPJbFqH+0qHrr13I0Bm46y3/51iag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fastmail.net header.s=fm3 header.b=koBUrRUF; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=HS0y1LWD; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fastmail.net header.s=fm3 header.b=koBUrRUF; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=HS0y1LWD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: A22B62E5CF X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: dRrQs0RQ4hjm Hi Ludo, > Yes. In the presence of grafts, run =E2=80=9Cguix build PKG=E2=80=9D. T= hat always > gives you the store file name of PKG, 100% reliable! At the cost of a few hours of CPU time, in the worst case. > I regularly do things like: > > ls $(guix build PKG)/bin > find $(guix build PKG) -name =E2=80=A6 What I am looking for is the equivalent of ls $(guix build PKG) that fails in whatever way for packages that are not in the store, but guarantees (1) not adding anything to the store and (2) response times short enough for interactive user interfaces. > If you want a variant that does that without building/downloading it, > it=E2=80=99s also possible, though not as easily from the command line. Guile is fine, no problem. But so far, I haven't found anything even at the Guile level that respects my two conditions. Background: I am working on a interactive UI for running reproducible computations via Guix: https://github.com/khinsen/guix-gtoolkit/ I'd like to implement (1) browsing package contents ("what exactly do I get by adding "core-utils" to my environment?") and (2) searching packages by the files they contain ("which package do I have to add to my environment to get the ls command?"). There will be a button for explicitly building a package, but I don't want it to happen as a side effect when doing operations that need to be fast. Cheers, Konrad.