From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wKoeJnJ49GSzFwEAauVa8A:P1 (envelope-from ) for ; Sun, 03 Sep 2023 14:13:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wKoeJnJ49GSzFwEAauVa8A (envelope-from ) for ; Sun, 03 Sep 2023 14:13:38 +0200 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 1946B61692 for ; Sun, 3 Sep 2023 14:13:38 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail3 header.b=FIWM0qaR; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693743218; 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=HUSUohSahIq184Htc7sKzn1Itr/Jl1P9ykFuR04lQCo=; b=bhvJMVTh/d7t4Jy4CMfgQkgxOhvqtni7HPVDtEcY1+SE8BMxFSIyzwsccjKEeTqLJYedj7 1hiRQeRGzXEKVu7lH+8FZvKGp5eQ0E0V8TRzQJGSonS6h9MGUpled63fIctB/naKjbM36V n9NvVghv5NlSIo9Dv3wTIIVu584xpwN50yOJI6e9dddN0l/bvfPUUgf0rfDMo64SNUqSFw VDQnrluZk8jMTm0oPu30lLE332NuZxbHRyVd9FIc5Af4Ur4ztPNqvMrcAORVGFmLQ8Ln6A JJDQW9rqfZPMAki8datiaQiILfN7znZTDkyzM4G3orF2wFfgYLfEihUOAk+D8g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail3 header.b=FIWM0qaR; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693743218; a=rsa-sha256; cv=none; b=bxE7NKJsmirpz51gAgmXCbGff2mSJT5epiMKmXkxh+1i6vsxadI2cOdyBQ+7/fP0GDwv4G QtrdNzYZTw3VId9uLxSFkIb6G/G3RLVv22KqkW0Yr5xRcj1oKl0/6YRpjwCa7HRKyUUdXo rUywFJHrDjz6hnGsdlbrQrlLxho1AXh6/SjjA0WLVC/8jtxGVuheiMNT9+haziykwpanwI rebQe4LzXXHG9hXkDAXFQ4Bjbxks20JQxWvmTtZR439IyzbA/LTbf1T5tc7DmczGE2jI3d 8lsg1O4ffuNDWBVPDxGNtiVsgNOy1EG32mepSvP1xMoG5zPzPS7PRJC75/Qbhg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qclyW-00008v-DR; Sun, 03 Sep 2023 08:13:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qclyP-00008h-3a for guix-devel@gnu.org; Sun, 03 Sep 2023 08:13:01 -0400 Received: from mail-4022.proton.ch ([185.70.40.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qclyK-0006ka-Ql for guix-devel@gnu.org; Sun, 03 Sep 2023 08:13:00 -0400 Date: Sun, 03 Sep 2023 12:12:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail3; t=1693743155; x=1694002355; bh=HUSUohSahIq184Htc7sKzn1Itr/Jl1P9ykFuR04lQCo=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=FIWM0qaRa5jdZwV+e8Mr/CSVSdeW8qEPyMzQRU/sCBWDqedrleFg168B45XKpcYCF jV2L2iATBQ1oR5+efA1BYWqd/sW+tQXlc/HfYLqQDQQo9et1iv1liVdb9XERPGgcK9 bgRyohHvymUpQElEIqmktnJVy+rjF5SB1w2bGayV5E6oNCzzSGJUleck0H5QrIkXh5 gBTmTQUPKrgl/9+pKjy8l19GuC0H+vd/uIyiVvytGdYWu/jllXnJikC7JwjuGI2aO+ pQtNd7hAF6NuBkHjTxSsaH7xk/LEyEQWnTHJ/kOyg1v7lFraRn4q7Anwc0xHlJicSf mVHOC9yT0LrdA== To: Andy Tai From: Attila Lendvai Cc: guix-devel@gnu.org Subject: Re: package definition question: referring to source files of another package? Message-ID: In-Reply-To: References: Feedback-ID: 28384833:user:proton 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=attila@lendvai.name; helo=mail-4022.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_MSPIKE_H2=-0.001, 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.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 1946B61692 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -1.11 X-Spam-Score: -1.11 X-TUID: kn9KzKqai6rJ > In some scenarios package A may refer to source files in package B. depending on where and what you need, you can do something like this in a G= EXP context: (define (upstream-file relative-path) (let ((git-origin (let ((commit "v0.13.2")) (origin (method git-fetch) (uri (git-reference (url ...) (commit commit))) (file-name (git-file-name "foo-bar" commit)) (sha256 (base32 ...)))))) (file-append git-origin relative-path))) #~(let ((x #$(upstream-file "/some-path"))) ...) this way the versioning of the two packages are not tied together, which ma= y or may not be what you want from a semantics perspective. --=20 =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- =E2=80=9CThere are some ideas so wrong that only a very intelligent person = could believe in them.=E2=80=9D =09=E2=80=94 George Orwell (1903=E2=80=931950)