From unknown Sat Aug 16 19:16:45 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#67172] [PATCH 0/2] Turning into lowerable objects Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Tue, 14 Nov 2023 13:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67172 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67172@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by submit@debbugs.gnu.org id=B.169996834616806 (code B ref -1); Tue, 14 Nov 2023 13:26:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Nov 2023 13:25:46 +0000 Received: from localhost ([127.0.0.1]:60477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2tQI-0004My-7n for submit@debbugs.gnu.org; Tue, 14 Nov 2023 08:25:46 -0500 Received: from lists.gnu.org ([2001:470:142::17]:45448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2tQF-0004Mh-EP for submit@debbugs.gnu.org; Tue, 14 Nov 2023 08:25:44 -0500 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 1r2tPT-0003Eq-P7 for guix-patches@gnu.org; Tue, 14 Nov 2023 08:24:55 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r2tPS-000133-Qy; Tue, 14 Nov 2023 08:24:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=iuHkF3KAoOFNqmbEfX0puuiJ/tBf/ogkk8SoFzS/6tE=; b=SS+YJ62aY3XL+I jIUQyVkpRF28VuyevY6qnj63Q0Oi+6C4MkQV6cnDVgT1XUdLtTVAtEh8x/mVqxXd4NF1cYnAtv86p AQ6ba8YdKNp8FGpGJCtk34eBgqoCXK5V1R0r/F7S2eq1uQ2laD44IDof7c6Z7oWrMXOmblKPdVX3v xg+bTrco33MlirmG8eERn3NkXTAc1CKusSE78pE1KFsFxFgQASm0vAU5o3WVdCTsjf2i/Ri0lsGWN DXqVHRHGk/+ZEqofQ0Qsen+wCNuyMLc4zQ58EfYD+ahu3mzgTCjCB9e70AO2tXv8yi312xUcw+fQG 0NmXRdBr85ct4txd1ElQ==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Tue, 14 Nov 2023 14:24:45 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello there! These patches address a long-standing issue with gexps: the gexp writer has full control over the type of references used in the gexp (they get to choose between ‘ungexp’ and ‘ungexp-native’, they also choose which output of the file-like to refer to), but whoever passes a value that ends up in the gexp has no power over the type of reference. The goal here is to provide a more control over that, as shown in this manual excerpt added here: --8<---------------cut here---------------start------------->8--- -- Procedure: gexp-input OBJ [OUTPUT] [#:native? #f] Return a “gexp input” record for the given OUTPUT of file-like object OBJ, with ‘#:native?’ determining whether this is a native reference (as with ‘ungexp-native’) or not. This procedure is helpful when you want to pass a reference to a specific output of an object to some procedure that may not know about that output. For example, assume you have this procedure, which takes one file-like object: (define (make-symlink target) (computed-file "the-symlink" #~(symlink #$target #$output))) Here ‘make-symlink’ can only ever refer to the default output of TARGET—the ‘"out"’ output (*note Packages with Multiple Outputs::). To have it refer to, say, the ‘"lib"’ output of the ‘hwloc’ package, you can call it like so: (make-symlink (gexp-input hwloc "lib")) You can also compose it like any other file-like object: (make-symlink (file-append (gexp-input hwloc "lib") "/lib/libhwloc.so")) --8<---------------cut here---------------end--------------->8--- Thoughts? Ludo’. Ludovic Courtès (2): gexp: Add compiler for . gexp: #:references-graphs accepts and honors records. doc/guix.texi | 45 ++++++++++++++++++++++++++++++++++++---- guix/gexp.scm | 31 +++++++++++++++++++++++----- tests/gexp.scm | 56 +++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 122 insertions(+), 10 deletions(-) base-commit: 08d94fe20eca47b69678b3eced8749dd02c700a4 -- 2.41.0 From unknown Sat Aug 16 19:16:45 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#67172] [PATCH 1/2] gexp: Add compiler for . Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Tue, 14 Nov 2023 13:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67172 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67172@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by 67172-submit@debbugs.gnu.org id=B67172.169996902117922 (code B ref 67172); Tue, 14 Nov 2023 13:37:02 +0000 Received: (at 67172) by debbugs.gnu.org; 14 Nov 2023 13:37:01 +0000 Received: from localhost ([127.0.0.1]:60495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2tbB-0004ez-3M for submit@debbugs.gnu.org; Tue, 14 Nov 2023 08:37:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2tb8-0004ek-Cr for 67172@debbugs.gnu.org; Tue, 14 Nov 2023 08:36:59 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r2taL-000382-1L; Tue, 14 Nov 2023 08:36:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=2tfQ0dQSlWrbaookOBSUTMiBfVQUuJ6VHs6Fq3Q0FkE=; b=S24OSB+Sr9JkEjZKmZBP 4UXvCwqvrFYeWKR8fLJwY643ZClKNVId9UukbMzTtTbZyu3JO9GHyqB3mSzdJJHlndvZTgWl80JcM gHgJlG2rGdnqwEEx19IaZb6dbOQPG7joHDqncMzfqCLYH7wwE2F5dzKEa80h7Esc1kXmDKaxwDem+ wbSaE6UxArKVqnFPSyZYd0s7PTXACOL9WU6LC9i2KSYC3OVZUQQCH7NelX98z2zIUfLZjqrrcz9QW nITxiX7AGWDWxTxSl9qmdxCp9sKSDArvegds2ZYguZpgrjiWQBA0ILW14nW6FbGQ9oKhSo5WPrIha zUA0FFimxxDVaQ==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Tue, 14 Nov 2023 14:35:47 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * guix/gexp.scm (gexp-input-compiler): New procedure. * tests/gexp.scm ("gexp references non-existent output") ("gexp-input, as first-class input"): New tests. * doc/guix.texi (G-Expressions): Document it. Change-Id: I95b58d6e4d77a54364026b4324fbb00125a9402e --- doc/guix.texi | 38 ++++++++++++++++++++++++++++++++++++++ guix/gexp.scm | 19 ++++++++++++++++++- tests/gexp.scm | 26 +++++++++++++++++++++++++- 3 files changed, 81 insertions(+), 2 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 9f06f1c325..8492f0ada3 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -12096,6 +12096,11 @@ G-Expressions @var{output} of @var{obj}---this is useful when @var{obj} produces multiple outputs (@pxref{Packages with Multiple Outputs}). +Sometimes a gexp unconditionally refers to the @code{"out"} output, but +the user of that gexp would still like to insert a reference to another +output. The @code{gexp-input} procedure aims to address that. +@xref{gexp-input}. + @item #+@var{obj} @itemx #+@var{obj}:output @itemx (ungexp-native @var{obj}) @@ -12489,6 +12494,39 @@ G-Expressions of Coreutils, regardless of the current value of @code{%current-system}. @end defmac +@anchor{gexp-input} +@deffn {Procedure} gexp-input @var{obj} [@var{output}] [#:native? #f] +Return a @dfn{gexp input} record for the given @var{output} of file-like +object @var{obj}, with @code{#:native?} determining whether this is a +native reference (as with @code{ungexp-native}) or not. + +This procedure is helpful when you want to pass a reference to a +specific output of an object to some procedure that may not know about +that output. For example, assume you have this procedure, which takes +one file-like object: + +@lisp +(define (make-symlink target) + (computed-file "the-symlink" + #~(symlink #$target #$output))) +@end lisp + +Here @code{make-symlink} can only ever refer to the default output of +@var{target}---the @code{"out"} output (@pxref{Packages with Multiple +Outputs}). To have it refer to, say, the @code{"lib"} output of the +@code{hwloc} package, you can call it like so: + +@lisp +(make-symlink (gexp-input hwloc "lib")) +@end lisp + +You can also compose it like any other file-like object: + +@lisp +(make-symlink + (file-append (gexp-input hwloc "lib") "/lib/libhwloc.so")) +@end lisp +@end deffn Of course, in addition to gexps embedded in ``host'' code, there are also modules containing build tools. To make it clear that they are diff --git a/guix/gexp.scm b/guix/gexp.scm index 0fe4f1c98a..a7f4256d24 100644 --- a/guix/gexp.scm +++ b/guix/gexp.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2014-2022 Ludovic Courtès +;;; Copyright © 2014-2023 Ludovic Courtès ;;; Copyright © 2018 Clément Lassieur ;;; Copyright © 2018 Jan Nieuwenhuizen ;;; Copyright © 2019, 2020 Mathieu Othacehe @@ -775,6 +775,23 @@ (define* (gexp-input thing ;convenience procedure whether this should be considered a \"native\" input or not." (%gexp-input thing output native?)) +;; Allow s to be used within gexps. This is useful when willing +;; to force a specific reference to an object, as in (gexp-input hwloc "bin"), +;; which forces a reference to the "bin" output of 'hwloc' instead of leaving +;; it up to the recipient to pick the right output. +(define-gexp-compiler gexp-input-compiler + compiler => (lambda (obj system target) + (match obj + (($ thing output native?) + (lower-object thing system + #:target (and (not native?) target))))) + expander => (lambda (obj lowered output/ignored) + (match obj + (($ thing output native?) + (let ((expand (or (lookup-expander thing) + (lookup-expander lowered)))) + (expand thing lowered output)))))) + ;; Reference to one of the derivation's outputs, for gexps used in ;; derivations. (define-record-type diff --git a/tests/gexp.scm b/tests/gexp.scm index 7a90f8dcbf..a3147405d7 100644 --- a/tests/gexp.scm +++ b/tests/gexp.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2014-2022 Ludovic Courtès +;;; Copyright © 2014-2023 Ludovic Courtès ;;; Copyright © 2021-2022 Maxime Devos ;;; ;;; This file is part of GNU Guix. @@ -393,6 +393,30 @@ (define %extension-package (list item)) (null? (lowered-gexp-inputs lexp))))) +(test-equal "gexp references non-existent output" + "no-default-output" + (guard (c ((derivation-missing-output-error? c) + (derivation-name (derivation-error-derivation c)))) + (let* ((obj (computed-file "no-default-output" + #~(mkdir #$output:bar))) + (exp #~(symlink #$obj #$output)) + (drv (run-with-store %store (lower-gexp exp)))) + (pk 'oops! drv #f)))) + +(test-assert "gexp-input, as first-class input" + ;; Insert a record in a gexp as a way to specify which output + ;; of OBJ should be used. + (let* ((obj (computed-file "foo" #~(mkdir #$output:bar))) + (exp #~(list #$(gexp-input obj "bar"))) + (drv (run-with-store %store (lower-object obj))) + (item (derivation->output-path drv "bar")) + (lexp (run-with-store %store (lower-gexp exp)))) + (and (match (lowered-gexp-inputs lexp) + ((input) + (eq? (derivation-input-derivation input) drv))) + (equal? (lowered-gexp-sexp lexp) + `(list ,item))))) + (test-assertm "with-parameters for %current-system" (mlet* %store-monad ((system -> (match (%current-system) ("aarch64-linux" "x86_64-linux") -- 2.41.0 From unknown Sat Aug 16 19:16:45 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#67172] [PATCH 2/2] gexp: #:references-graphs accepts and honors records. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Tue, 14 Nov 2023 13:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67172 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67172@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by 67172-submit@debbugs.gnu.org id=B67172.169996904417988 (code B ref 67172); Tue, 14 Nov 2023 13:38:01 +0000 Received: (at 67172) by debbugs.gnu.org; 14 Nov 2023 13:37:24 +0000 Received: from localhost ([127.0.0.1]:60505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2tbX-0004g4-Ky for submit@debbugs.gnu.org; Tue, 14 Nov 2023 08:37:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2tbV-0004fp-GU for 67172@debbugs.gnu.org; Tue, 14 Nov 2023 08:37:21 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r2tah-0003Ae-Kt; Tue, 14 Nov 2023 08:36:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=ok/uAKjMCy/oQGrwNt/rf/KNm6Bb0NevxF0AwmWp/K0=; b=mL/rg/mKv/D8KZVzr+lG RTuarVYGKPh+rqGoXtF1Agua3f+T4/4fAfcvurnth0TET9ChjeNpxQXlipFFRLkrTWeAs0Df/Isi5 Fd2cvGSFSZjSEiZAmH701FRPgRAwhk8VkYZEXTfzx7UXtC9O3zsP//m/1UyMcLmOmgkrsV4Ck/1dR IkALdGrKt8IQGsFdR0PKNR/2uv/NYaPcRhaE8jKX3LlLUjvcIYivM3U/Gbc50ZApDfe0juP9piQVI 0K6ZNlksf6Lh8OdXtQACRqDVL1Ob3quEm7Rk/Kv9oMI+mnn1kkibhS99OT5hDH007SMo3LZaWWVzb +193STFPojOIjw==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Tue, 14 Nov 2023 14:35:48 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * guix/gexp.scm (lower-reference-graphs)[tuple->gexp-input]: Add ‘gexp-input?’ case. (gexp->derivation): Update docstring. * doc/guix.texi (G-Expressions): Adjust accordingly. * tests/gexp.scm ("references-file, non-default output"): New test. Change-Id: I595cb75da0867ab8ab44552887dc06ed1d23315e --- doc/guix.texi | 7 +++---- guix/gexp.scm | 12 ++++++++---- tests/gexp.scm | 30 ++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 8 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 8492f0ada3..5f90ec6eb4 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -12213,10 +12213,9 @@ G-Expressions following forms: @example -(@var{file-name} @var{package}) -(@var{file-name} @var{package} @var{output}) -(@var{file-name} @var{derivation}) -(@var{file-name} @var{derivation} @var{output}) +(@var{file-name} @var{obj}) +(@var{file-name} @var{obj} @var{output}) +(@var{file-name} @var{gexp-input}) (@var{file-name} @var{store-item}) @end example diff --git a/guix/gexp.scm b/guix/gexp.scm index a7f4256d24..29819878fa 100644 --- a/guix/gexp.scm +++ b/guix/gexp.scm @@ -934,6 +934,11 @@ (define* (lower-reference-graphs graphs #:key system target) corresponding or store item." (define tuple->gexp-input (match-lambda + (((? gexp-input? input)) + ;; This case lets users specify the output of interest more + ;; conveniently, for instance by passing (gexp-input hwloc "lib") to + ;; the 'references-file' procedure. + input) ((thing) (%gexp-input thing "out" (not target))) ((thing output) @@ -1152,10 +1157,9 @@ (define* (gexp->derivation name exp When REFERENCES-GRAPHS is true, it must be a list of tuples of one of the following forms: - (FILE-NAME PACKAGE) - (FILE-NAME PACKAGE OUTPUT) - (FILE-NAME DERIVATION) - (FILE-NAME DERIVATION OUTPUT) + (FILE-NAME OBJ) + (FILE-NAME OBJ OUTPUT) + (FILE-NAME GEXP-INPUT) (FILE-NAME STORE-ITEM) The right-hand-side of each element of REFERENCES-GRAPHS is automatically made diff --git a/tests/gexp.scm b/tests/gexp.scm index a3147405d7..481755138e 100644 --- a/tests/gexp.scm +++ b/tests/gexp.scm @@ -1651,6 +1651,36 @@ (define shebang read) refs))))))) +(test-assertm "references-file, non-default output" + (let* ((exp #~(begin + (mkdir #$output) + (symlink #$%bootstrap-guile #$output:extra))) + (computed (computed-file "computed" exp + #:guile %bootstrap-guile)) + (refs1 (references-file computed + #:guile %bootstrap-guile)) + ;; Wrap COMPUTE in 'gexp-input' to get the "extra" output. + (refs2 (references-file (gexp-input computed "extra") + #:guile %bootstrap-guile))) + (mlet* %store-monad ((drv0 (lower-object %bootstrap-guile)) + (drv1 (lower-object computed)) + (drv2 (lower-object refs2)) + (drv3 (lower-object refs1))) + (mbegin %store-monad + (built-derivations (list drv2 drv3)) + (mlet %store-monad ((refs ((store-lift requisites) + (list (derivation->output-path + drv1 "extra"))))) + (return + (and (lset= string=? + (call-with-input-file (derivation->output-path drv2) + read) + refs) + (lset= string=? + (call-with-input-file (derivation->output-path drv3) + read) + (list (derivation->output-path drv1)))))))))) + (test-assert "lower-object & gexp-input-error?" (guard (c ((gexp-input-error? c) (gexp-error-invalid-input c))) -- 2.41.0 From unknown Sat Aug 16 19:16:45 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#67172] [PATCH 1/2] gexp: Add compiler for . Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 04 Dec 2023 02:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67172 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 67172@debbugs.gnu.org, Simon Tournier , Mathieu Othacehe , Tobias Geerinckx-Rice , Josselin Poiret , Ricardo Wurmus , Christopher Baines Received: via spool by 67172-submit@debbugs.gnu.org id=B67172.17016551835752 (code B ref 67172); Mon, 04 Dec 2023 02:00:02 +0000 Received: (at 67172) by debbugs.gnu.org; 4 Dec 2023 01:59:43 +0000 Received: from localhost ([127.0.0.1]:33195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9yFL-0001Ui-HW for submit@debbugs.gnu.org; Sun, 03 Dec 2023 20:59:43 -0500 Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:61586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9yFH-0001US-56 for 67172@debbugs.gnu.org; Sun, 03 Dec 2023 20:59:41 -0500 Received: by mail-qt1-x835.google.com with SMTP id d75a77b69052e-42548f6c565so14982121cf.2 for <67172@debbugs.gnu.org>; Sun, 03 Dec 2023 17:59:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701655163; x=1702259963; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qFyQpccKbKk0Sb+Mg9jRSwnb9VKcji52SIX5mGUWi3g=; b=Q4iNoyohKRgQhZPtENOFYeF4tOreXj4rKUJQYNh0/5wvAI9y6Vc86AhczpJ3rDAgV1 3mvWPlxf9ILMf84sNIacrWFNX54+dM/2dOgVI19tBHqSQkX3adX1N9/akO3WfCnaDa8v /Gl4akix5tWocfbJtVeV+dsHm26YmutL4RLV1eo1RkFKJZSgMMD3mUxpTmO3IyfC9k8p ThTY+Rd20C77dpkCHuGPyKVo2F9O0v/oBGjtJgbNs7T801RMfd5YfV7G0hnK89HNdCfz J+mZuIXj3jbLINZ6W/0p8YsXENTIWQzFxh0UqS0J4QJZRk3TkN2+tubCKUFbwQ/qPcip AonA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701655163; x=1702259963; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=qFyQpccKbKk0Sb+Mg9jRSwnb9VKcji52SIX5mGUWi3g=; b=v/zR3z0pXypaVmcZc3GxT2gXt0lP5OQNFfJJUF018WtJOYxoi4qunn0GniFrpCNOHb WKkbR6Sx8z/XET0sQ3/jjWuP/zNzZ+rBogva6wLbMJyWLptYIdxHET1eCaFHaoF8foJC X8phsvIAWCW7cgRZ7rTyM8C6x0G6cUTN5eT1Yg3cQ57HKA3SFnEFx2TuujqnTWwBcP9g T4tArv0j1G5sQZq7thqQxeY+yPj8a/JcXLcst/XcpqcUv6rnTOkCfUgilXwt5VJwEZoI y8bATHpa2BE1idgiTdimtBfJvwiADXOXDIqp5pNWSJJZpwSRC+U8AGb+wcgJdLpDO4t5 rhZg== X-Gm-Message-State: AOJu0YyeEKN1WSJcReg0GiGcIw8atLS0TaAXNoK/bocjCb4sVsZUQSqE WDWjXqYzMaY7Y9iT6APMH0cNkB2PHReAAg== X-Google-Smtp-Source: AGHT+IHw7jspNQjVa4KINo6CjA+BYgsNEVFjb0lKA56RGAkwqUIzFP9YBnZnrm4/zADsweddqorh7g== X-Received: by 2002:a05:622a:508:b0:425:4043:96fa with SMTP id l8-20020a05622a050800b00425404396famr6211357qtx.135.1701655163252; Sun, 03 Dec 2023 17:59:23 -0800 (PST) Received: from hurd (dsl-141-198.b2b2c.ca. [66.158.141.198]) by smtp.gmail.com with ESMTPSA id ke19-20020a05622a289300b0041cb787ff41sm3831481qtb.67.2023.12.03.17.59.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 17:59:22 -0800 (PST) From: Maxim Cournoyer In-Reply-To: ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Tue, 14 Nov 2023 14:35:47 +0100") References: Date: Sun, 03 Dec 2023 20:59:21 -0500 Message-ID: <87sf4isp6u.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello! Ludovic Court=C3=A8s writes: > * guix/gexp.scm (gexp-input-compiler): New procedure. > * tests/gexp.scm ("gexp references non-existent output") > ("gexp-input, as first-class input"): New tests. > * doc/guix.texi (G-Expressions): Document it. This looks useful, and a summary read of the implementation looks sane (I'm not much knowledgeable yet w.r.t. to gexp compiler/expander though). Reviewed-by: Maxim Cournoyer --=20 Thanks, Maxim From unknown Sat Aug 16 19:16:45 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#67172] [PATCH 2/2] gexp: #:references-graphs accepts and honors records. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 04 Dec 2023 02:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67172 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 67172@debbugs.gnu.org, Simon Tournier , Mathieu Othacehe , Tobias Geerinckx-Rice , Josselin Poiret , Ricardo Wurmus , Christopher Baines Received: via spool by 67172-submit@debbugs.gnu.org id=B67172.17016555786430 (code B ref 67172); Mon, 04 Dec 2023 02:07:02 +0000 Received: (at 67172) by debbugs.gnu.org; 4 Dec 2023 02:06:18 +0000 Received: from localhost ([127.0.0.1]:33199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9yLi-0001fd-E8 for submit@debbugs.gnu.org; Sun, 03 Dec 2023 21:06:18 -0500 Received: from mail-oi1-x22c.google.com ([2607:f8b0:4864:20::22c]:58841) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9yLf-0001fM-TM for 67172@debbugs.gnu.org; Sun, 03 Dec 2023 21:06:18 -0500 Received: by mail-oi1-x22c.google.com with SMTP id 5614622812f47-3b8b0b75445so1464020b6e.1 for <67172@debbugs.gnu.org>; Sun, 03 Dec 2023 18:06:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701655560; x=1702260360; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UMRSsKZne5Jr5Aki54DJCLXtxAmvH9mVbXEo10ogRdU=; b=bNBWsKIDuo7CXw7l+gKTltK5kz80GmBfp6u0hsLEFIKZhbtfOZ9kp1Bw0TO03T8KL9 pW6EAfU4oo/CIWrm0q5GnsnO7ZRWZnp23sKBSqb7kxuWpPT+HfX2M9zjmOKUfuVGHdVF zAw9isnsBurHeERAizWGJNO6M3t2m+YMOziSjcYa4rgOGMQGRgswSHBBAgAOcvuQQsvS i4VE4Xkm3XoXMDMLVa7oSdS7/7X76hPzTnVlIjL+m9pAej26NqEvwgUaoCgbEWAm/jQj VZwBa3FqMg96dDI4S+BztnsIlsVy7V0bteLR0y0R+sHdjSe9XsW0SX6a2MJ5S37jHXzX Vvfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701655560; x=1702260360; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=UMRSsKZne5Jr5Aki54DJCLXtxAmvH9mVbXEo10ogRdU=; b=O2H/kZFFcG1u6D4tdK2DiRjsPGeWTW6PHgY5rGFG04XxW8aWtS2QI6gzJ1l2F4B07L 0mOn5Fg0t1ERLdpZJwYcQszSAz7N6ALluxz5iTCMl/aMOCTO3F4OA8BbYNOOCVjN2Spy jA1qdlgcKPxT8zCbbob05GhUB4dCY2tVSWMfaAZwexSkoX0cR3uyUjXlKqbJZGUHFJY9 fRDFgBEy0SQ8vpYgsJ1buYFccgBKsjCzwGwr5dc0V7QRznzQ28ex1QO2AhtfRb0Sd4f4 JDuRrZ4P1q36B6kNN9T2RTBYSefcQ/h+flAGnJH3wv+jb9GCoEaH4Kt7LbLS6mD/HjhO SRiA== X-Gm-Message-State: AOJu0Yx6bg5iXCT67ETlYKIf85l52y3Q4x5SuO3g7rGJfP+heMh0HCdb K0SvQ2K0c/UX/cy+MY6xQYo= X-Google-Smtp-Source: AGHT+IHTCngScuQNJI5MrVy1RloGByohMIk0dqW14Kxi5dTQDjGCVlp5ze/R6qGxfwXh9V0O1u+yPA== X-Received: by 2002:a05:6808:1b06:b0:3b2:e51a:a44d with SMTP id bx6-20020a0568081b0600b003b2e51aa44dmr5983858oib.34.1701655559902; Sun, 03 Dec 2023 18:05:59 -0800 (PST) Received: from hurd (dsl-141-198.b2b2c.ca. [66.158.141.198]) by smtp.gmail.com with ESMTPSA id c21-20020a05620a165500b00763b94432ebsm3843183qko.18.2023.12.03.18.05.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 18:05:59 -0800 (PST) From: Maxim Cournoyer In-Reply-To: ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Tue, 14 Nov 2023 14:35:48 +0100") References: Date: Sun, 03 Dec 2023 21:05:58 -0500 Message-ID: <87o7f6sovt.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Ludovic Court=C3=A8s writes: > * guix/gexp.scm (lower-reference-graphs)[tuple->gexp-input]: Add > =E2=80=98gexp-input?=E2=80=99 case. > (gexp->derivation): Update docstring. > * doc/guix.texi (G-Expressions): Adjust accordingly. > * tests/gexp.scm ("references-file, non-default output"): New test. The test was a bit dense for me to parse, but other than that, Reviewed-by: Maxim Cournoyer --=20 Thanks, Maxim From unknown Sat Aug 16 19:16:45 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#67172: closed (Re: [bug#67172] [PATCH 2/2] gexp: #:references-graphs accepts and honors records.) Message-ID: References: <87cyuzdt3m.fsf@gnu.org> X-Gnu-PR-Message: they-closed 67172 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 67172@debbugs.gnu.org Date: Thu, 21 Dec 2023 23:39:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1703201942-22388-1" This is a multi-part message in MIME format... ------------=_1703201942-22388-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #67172: [PATCH 0/2] Turning into lowerable objects which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 67172@debbugs.gnu.org. --=20 67172: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D67172 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1703201942-22388-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 67172-done) by debbugs.gnu.org; 21 Dec 2023 23:38:38 +0000 Received: from localhost ([127.0.0.1]:45694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGScf-0005oX-UX for submit@debbugs.gnu.org; Thu, 21 Dec 2023 18:38:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGScd-0005oE-M6 for 67172-done@debbugs.gnu.org; Thu, 21 Dec 2023 18:38:36 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rGScT-0003dq-2W; Thu, 21 Dec 2023 18:38:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=+xVzp3U+CXtu1LS3EMwh4Z7jcDxSPiYlbcxhds1iuv8=; b=aMLnQB7hbmbd8djrJhAc Ce7hNte0rOb9Y8Gsc9GGibH5uU9peL3lz5jxZeggmh4XFbRIM1kEkW1/i5HmwIzacpl7RjBXDC05O +zPi+Mk9hoC5qS0A7hi3+9t6SDbjIzT9r/xljThbIgGXbydOVAZW/DJmzDsaEBwu1dnZV6fyz2HEG hMizpBpYJSFnptfOwwy0vyo0TRYwOq5p22Ht2BWVFW2IO9zTgn0R5l+Kwmm8nCncojw7+GVqoWZWV VbDEX5UQjrKagMhnTgNQbL7D/v089KaY2OLVOAqt2ycC1z09qqly7ZteQRG0rGFdyxezL/CevDPI7 SZl2gn4rDPhclw==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: [bug#67172] [PATCH 2/2] gexp: #:references-graphs accepts and honors records. In-Reply-To: <87o7f6sovt.fsf@gmail.com> (Maxim Cournoyer's message of "Sun, 03 Dec 2023 21:05:58 -0500") References: <87o7f6sovt.fsf@gmail.com> Date: Fri, 22 Dec 2023 00:38:21 +0100 Message-ID: <87cyuzdt3m.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 67172-done Cc: 67172-done@debbugs.gnu.org, Simon Tournier , Mathieu Othacehe , Tobias Geerinckx-Rice , Josselin Poiret , Ricardo Wurmus , Christopher Baines X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Thanks for your feedback, pushed! 11a454f9da * gexp: #:references-graphs accepts and honors re= cords. d9190abbd2 * gexp: Add compiler for . Ludo=E2=80=99. ------------=_1703201942-22388-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 14 Nov 2023 13:25:46 +0000 Received: from localhost ([127.0.0.1]:60477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2tQI-0004My-7n for submit@debbugs.gnu.org; Tue, 14 Nov 2023 08:25:46 -0500 Received: from lists.gnu.org ([2001:470:142::17]:45448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2tQF-0004Mh-EP for submit@debbugs.gnu.org; Tue, 14 Nov 2023 08:25:44 -0500 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 1r2tPT-0003Eq-P7 for guix-patches@gnu.org; Tue, 14 Nov 2023 08:24:55 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r2tPS-000133-Qy; Tue, 14 Nov 2023 08:24:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=iuHkF3KAoOFNqmbEfX0puuiJ/tBf/ogkk8SoFzS/6tE=; b=SS+YJ62aY3XL+I jIUQyVkpRF28VuyevY6qnj63Q0Oi+6C4MkQV6cnDVgT1XUdLtTVAtEh8x/mVqxXd4NF1cYnAtv86p AQ6ba8YdKNp8FGpGJCtk34eBgqoCXK5V1R0r/F7S2eq1uQ2laD44IDof7c6Z7oWrMXOmblKPdVX3v xg+bTrco33MlirmG8eERn3NkXTAc1CKusSE78pE1KFsFxFgQASm0vAU5o3WVdCTsjf2i/Ri0lsGWN DXqVHRHGk/+ZEqofQ0Qsen+wCNuyMLc4zQ58EfYD+ahu3mzgTCjCB9e70AO2tXv8yi312xUcw+fQG 0NmXRdBr85ct4txd1ElQ==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: guix-patches@gnu.org Subject: [PATCH 0/2] Turning into lowerable objects Date: Tue, 14 Nov 2023 14:24:45 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Christopher Baines , Josselin Poiret , Ludovic Courtès , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello there! These patches address a long-standing issue with gexps: the gexp writer has full control over the type of references used in the gexp (they get to choose between ‘ungexp’ and ‘ungexp-native’, they also choose which output of the file-like to refer to), but whoever passes a value that ends up in the gexp has no power over the type of reference. The goal here is to provide a more control over that, as shown in this manual excerpt added here: --8<---------------cut here---------------start------------->8--- -- Procedure: gexp-input OBJ [OUTPUT] [#:native? #f] Return a “gexp input” record for the given OUTPUT of file-like object OBJ, with ‘#:native?’ determining whether this is a native reference (as with ‘ungexp-native’) or not. This procedure is helpful when you want to pass a reference to a specific output of an object to some procedure that may not know about that output. For example, assume you have this procedure, which takes one file-like object: (define (make-symlink target) (computed-file "the-symlink" #~(symlink #$target #$output))) Here ‘make-symlink’ can only ever refer to the default output of TARGET—the ‘"out"’ output (*note Packages with Multiple Outputs::). To have it refer to, say, the ‘"lib"’ output of the ‘hwloc’ package, you can call it like so: (make-symlink (gexp-input hwloc "lib")) You can also compose it like any other file-like object: (make-symlink (file-append (gexp-input hwloc "lib") "/lib/libhwloc.so")) --8<---------------cut here---------------end--------------->8--- Thoughts? Ludo’. Ludovic Courtès (2): gexp: Add compiler for . gexp: #:references-graphs accepts and honors records. doc/guix.texi | 45 ++++++++++++++++++++++++++++++++++++---- guix/gexp.scm | 31 +++++++++++++++++++++++----- tests/gexp.scm | 56 +++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 122 insertions(+), 10 deletions(-) base-commit: 08d94fe20eca47b69678b3eced8749dd02c700a4 -- 2.41.0 ------------=_1703201942-22388-1--