From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IB0RAssxn2CqqgAAgWs5BA (envelope-from ) for ; Sat, 15 May 2021 04:28:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KFZXOcoxn2CzBAAA1q6Kng (envelope-from ) for ; Sat, 15 May 2021 02:28:26 +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 54FB2172F0 for ; Sat, 15 May 2021 04:28:26 +0200 (CEST) Received: from localhost ([::1]:52974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhk2S-0004Jw-Bj for larch@yhetil.org; Fri, 14 May 2021 22:28:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhk2J-0004Jh-PN for help-guix@gnu.org; Fri, 14 May 2021 22:28:16 -0400 Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]:39529) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhk2H-0002lj-PZ for help-guix@gnu.org; Fri, 14 May 2021 22:28:15 -0400 Received: by mail-io1-xd35.google.com with SMTP id k25so636462iob.6 for ; Fri, 14 May 2021 19:28:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beadling-co-uk.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=pWfKNLASI6H/cq/VKMaYscpAZiArIjdiFje3oslXrSU=; b=qIx3gOP3w+4fYgz67gt+ORiXYq6a3/F5pJektPf2uPc6hzIDkscgijI+x+wFaezgBM aJC+g5+iPHirUFWA3xJGVh5MNF7u0PZwtFXpKS0NUX/JjzGBBviPTXt0oGdQxhiCD0av ZEqwxJxLYD1Y7fJQ7CFAwmi3RVAB2ca+5N+wDPVpwkRNJ5SM1SnuZyoCOhwt43wqF4Ex AiDsjeLlemqvOwNXmISW+3klPMetNhs2BWmEI7nIyjsIulTu+cCt51IbsV/M5gKTNTbT iqYx1f9eSIksMNJgq4uroGXWqd0pFtIyhfGABh3l0wniSODng9z//SFy5qT8ZxmC8e/l Uhhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=pWfKNLASI6H/cq/VKMaYscpAZiArIjdiFje3oslXrSU=; b=sYIdERqR/1rHq/WXvcmSUbceNzufRyfRYSno0QwQ3KXUBw8DVT/mSoQjVBd9ts8OkT 8j6MD0yGGZH11ZcfGLwST+Mb8BSYbRmlX2sDox6HA6oZfml7R5JZfcmAOiC4MgS5HLno PxsgSr1AP+huaiw5RHgvebtZyGIbJzWfHFgO2yAuLhlpR0XV5NLXC4Y0RThUGiJmFZCw 0xMfoYOTSXmkaKbE2rgUm+ff+EiZGKkBh5cikEjbNj84JnQlOdoZercABIM4J1fR7l/i 819W00zhz/ZyCyuEBypuAe/Ua8Yg8gxhPDDjwBvCMajGaDSIyvg29xTKSG4QUDNfl52J mI1A== X-Gm-Message-State: AOAM531fC0CpPj18lfpztcX7bi/ADTHc2FovxM65BPfHWDrR0UKxjUdX OMwscMnXu33EDYMtT30WZ7VhxtM0Va/wX1Z+Js2YODAxuseRFcRHvWQ= X-Google-Smtp-Source: ABdhPJxR/eJ6CDYdS6ESyTAgx+gTVQccTVfLxxSbSDEbQNzmByYbNF5HvAPRjvFRJLQHlfBSCcwyGUWb+zA6ztW1zbE= X-Received: by 2002:a5e:c00e:: with SMTP id u14mr33789812iol.106.1621045691874; Fri, 14 May 2021 19:28:11 -0700 (PDT) MIME-Version: 1.0 From: Phil Beadling Date: Sat, 15 May 2021 03:28:01 +0100 Message-ID: Subject: Find location of installed package in /gnu/store To: help-guix Received-SPF: none client-ip=2607:f8b0:4864:20::d35; envelope-from=phil@beadling.co.uk; helo=mail-io1-xd35.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621045706; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=OVvKvMlsAM23MmntRidYsEm+FzW70CoVJoODDpdZg14=; b=Di/Ab2uaj9Txtxhtss7j1PQt0GN1ymzx0jCv5qeph3zU1xyju1s3OU4ENZmjzgOw5A6iSJ PLcdRguz7nXESsdfMSkbNWTtoj6tV95FCToth/vpL0IX128xolgiLmWTAnL/xDu5kmLycN WhGEU+9GKtyE7ifK+ZIE6dS+S51/PWZ2hJvlJ/U5Ouf+c23UfIa/XlK2ZwxJnIhsC12sbi L9IdosTnmXgckAhzY0HzihrvocrdXg7op6nahtFSuSAcpgGAKWmn+n6ExqyLd2Ms3phAH7 DG+mkU0jlGNcji59DUIvbNFf/0IqgaBwZeSvhdYYBTdNw7Z4wTTKZ+jAABDfdA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621045706; a=rsa-sha256; cv=none; b=iSZj37NdcdQYxlM1wrJBvbwoKotxmScMFzE/yRMU1h9ypKbbmDBr6a8yAgf8RsXz7+B7/L TzZ+YvE6O93pxYG9ErA4RO7IrbITZbGcNbftMwTBAerSWUL9cdbOVHQynyDkm052uayz4D 5ouSMfFAZxBPY2v2bHBCSASyvpVfG6S5MDwW9AYwY6WqMPDP4sLZrFjbabAQmCdA99bGK6 8WgDWRDLe1IZIvLf7AUS//NGW2n/F6+q/rdWPuTzvJl13uw9kZTqk6yX8cBCGghA5hWMxk H8h+QnC3EZfsjK/mAmmSfuK2BwXI8PzefdIpM9oxwENYu6LpGzkEAaRBorS8gg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=beadling-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=qIx3gOP3; 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-Migadu-Spam-Score: -1.45 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=beadling-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=qIx3gOP3; 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-Migadu-Queue-Id: 54FB2172F0 X-Spam-Score: -1.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZUdJ17XDZmPF Hi, Given a package definition, eg icedtea-8's JDK, how can can I determine the location of the installed package in my /gnu/store? There doesn't seem to be anything on the package module itself, presumably because this is static data, and what I need is something to calculate the hash of the resulting install specific to my Guix? eg scheme@(guix-user) [3]> (package-outputs icedtea-8) $8 = ("out" "jdk" "doc") scheme@(guix-user) [3]> I'd like to return this location using the package name or definition as an input: /gnu/store/i3vf1a49m0abcjqza19mb4mkjmc6k60n-icedtea-3.7.0-jdk/ The aim is to use this to derivive the JDK include directories in a generic way for some scripts I'm writing, such that I don't need to update them each time the JDK hash changes after a guix pull. Cheers, Phil.