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 MCghDiyeG2HUQAAAgWs5BA (envelope-from ) for ; Tue, 17 Aug 2021 13:31:56 +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 cGPhCSyeG2HVOQAA1q6Kng (envelope-from ) for ; Tue, 17 Aug 2021 11:31:56 +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 A341A293C4 for ; Tue, 17 Aug 2021 13:31:55 +0200 (CEST) Received: from localhost ([::1]:54546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mFxJx-0007rt-HP for larch@yhetil.org; Tue, 17 Aug 2021 07:31:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFxJm-0007q0-5P for help-guix@gnu.org; Tue, 17 Aug 2021 07:31:42 -0400 Received: from mail-il1-x135.google.com ([2607:f8b0:4864:20::135]:39689) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mFxJk-0002ZB-B3 for help-guix@gnu.org; Tue, 17 Aug 2021 07:31:41 -0400 Received: by mail-il1-x135.google.com with SMTP id y3so21821996ilm.6 for ; Tue, 17 Aug 2021 04:31:39 -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=vQJWUpLROBckIEvVTJCwLOy5IbMVuMN8ZxgkF3WCN9U=; b=mFguLIEaq/r/JZIweCY7jlRAS40btsC7vHxQBfFJt+b0BMr0MwoMfSo+DJQxXrsEfV eVUN/A5AB40tjFmLBdH19W/ptX/JpjS4iMnRCrNkbTpJqu3Jz/gOkPLvn1DTete3s2/L rIxsNqwcWs3VelA7jTxhacxVOWYjZ501PFC/MMOUx5gKDEUH+CRKM1qLfKmv4POKACY1 rxsIl+QNBg+E5B2XTMxYVVesLNLRXRcVz89XkfDc94BJ8wt7ag7S4q9MXtepmZe030Co TyeiJBI6vErpvMTwrv5O3txnXiGIyF87bExebho+U6108TN1C02TFa1H1uOkL1h8bKzv mtAg== 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=vQJWUpLROBckIEvVTJCwLOy5IbMVuMN8ZxgkF3WCN9U=; b=ZX6PGO4UbHw51f8zevrSlqVvA5yoKScxPorFSIoluJWUMl+/iKCJEm6mrsoA5/oqmC FbvJMi7CJoQKH6cWZz8CVquZCQ43KJipukORN8mU5omHAAzCYSHo2VCJq2Dkre1JIZaw iDQC3Yp4IpEUcRTNA+ST+mj8Pz60XOm0Lj9zaHRR9Bor1Z7BJAqwRPAQCEiVJOyttKH5 /x8jUaDzyGgCu1AJl4faKYzuZHCNwjMtF1HDdxoZWL/D9j4uBRUjXTulRFyoVx7qslUT 6vs5e8fqPgKwhJF1odeWR/ulxApBavXe276e9LKhw0zQ7xt3B2329ackcpPmh/RSjEjj EOJA== X-Gm-Message-State: AOAM533c55yOuDeAKiVISB/LgI+s6i2VxsuCJWIBdZRh7ZG9TRevQYcz JFrAnkXid2C6L/wmAHMbco2FPsOS+YgOmc5tZEe9J/IBoADnIw1ozrQ= X-Google-Smtp-Source: ABdhPJwB8dfv99kLOXepJ8YlwJm35M5Y8IIAAJBb3yipq98VMUp+OcyGk3sDOUhu9xttDJAjjBiC5KK7hh0ln8X5fwk= X-Received: by 2002:a92:b308:: with SMTP id p8mr2050923ilh.296.1629199898467; Tue, 17 Aug 2021 04:31:38 -0700 (PDT) MIME-Version: 1.0 From: Phil Beadling Date: Tue, 17 Aug 2021 12:31:27 +0100 Message-ID: Subject: A single reference to installed non-binaries To: help-guix Received-SPF: none client-ip=2607:f8b0:4864:20::135; envelope-from=phil@beadling.co.uk; helo=mail-il1-x135.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=1629199915; 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=j9oXs1TztB/5d2QIYGxl4gfEcfS7iTF8LnsneO+uyD0=; b=UMNFemqLTlVo/tRhI4F0vtM6FdA5jCElWPAoyMGxkTJHBomSg0KjAhtJRK/9WgA8s9E4HD 2GxOIZAanmx+wm96wsGHt4b3wb0Q1ARQp9/GIQB9yjbCEwDwX0gurjUBtH6r4BrQON55w9 2NndEyryDkn0fyEelw6rl7dyvGm7gwtXJmxW/SkaGaiYlWet7qW1hxwSIqYFr9IjkRlCSd VQU60kcPK4km+KzNW2AA60YizCCcZX6VgxmXRg+7Xw5s5tJH+pItrfUWdoarH7ZI48ljhC sRD70l/eIdq38v831X7SmQRI9ivibUYrTyZmHt5WQLwUsqIOk8b+CTwq/5SdmA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629199915; a=rsa-sha256; cv=none; b=cmalzXzuu81pUQSqk0kyLmAkUOw3RBmsoOrJC/RCDhjtp/QzpZZYY0QI/5VI2XHv0cNxBR Pp+igRatTkUr8B1rpKDZGt9lGYQUc5iQAzCOMYMofh8KSaoQnKCgLcCEFZCRXzj412UGtB Lc8SuqcEEVmX5e92lG2qlNbaFWS7BXw05/MYN3oj58m9ZR7OYH5ieri7ylW6XXoBSnusfj C92+8XtUPlqxMAl8rI6ACDlPcRQ+vgs4/jVsrdJ1Zdosd0jUQpXWC8zZMupA3xd0AiJ5IJ YnxeCBkwgslNFz85/aIRoZqI73nS5DENH3fc95Q221jPlovVpRSLBuyUDzvZfw== 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=mFguLIEa; 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-Spam-Score: -2.08 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=mFguLIEa; 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: A341A293C4 X-Spam-Score: -2.08 X-Migadu-Scanner: scn0.migadu.com X-TUID: DM7pO9jx2Nvx Hi all, I have some platform independent files I have created a package for using copy-build-system. This works great but I've come across situation I don't know how to handle. Let's call the package I've made package-x, and let's say that package-y (which is for arguments sake is a python build system) lists package-x as a propagated-input. package-x is installing a directory, let's say "bar" from the source into "share/foo/" '(#:install-plan '(("bar" "share/foo/"))) Now whenever we install package-y, I should expect it's "share" directory to contain foo/bar - and I find it to be the case. No suprises so far. The problem comes when I want to reference a file under "bar" in the source code of package-y. Depending on whether I install package-y via "guix install package-y -p /path/to/profile" or via "guix environment --ad-hoc package-y" there is no single reference to the bar directory that covers every use-case. When I "install" the package - I can reference it using $GUIX_PROFILE But as for example a developer when I'm coding package-y I would reference it using $GUIX_ENVIRONMENT This means that any source that references it must presumably attempt to read it from $GUIX_ENVIRONMENT, and then on failure fallback to $GUIX_PROFILE. This feels a bit brittle to me, and I'm hoping I've missed a trick, and there's a better way to singluarly reference the location of a share directory from any GUIX profile or environment? Note the problem doesn't happen with binaries as the order of precedence in the PATH variable avoids the issue. Any ideas? Thanks, Phil.