aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tournier <zimon.toutoune@gmail.com>2023-09-05 16:37:32 +0200
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-09-06 16:41:06 -0400
commitd552c2508f891a92c465492984ff498dcc384651 (patch)
tree4884ababe2ce44f9415c6acc756e74bdbd6806c3
parent65dcfb3f3865d08467da747041263fd22460d393 (diff)
downloadguix-d552c2508f891a92c465492984ff498dcc384651.tar.gz
guix-d552c2508f891a92c465492984ff498dcc384651.zip
guix: packages: Support package/inherit by package-field-location.
Fixes <https://issues.guix.gnu.org/65236>. * guix/packages.scm (package-field-location): Add package/inherit case. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Reported-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
-rw-r--r--guix/packages.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/packages.scm b/guix/packages.scm
index ba98bb0fb4..f70fad695e 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -761,7 +761,8 @@ object."
(lambda (port)
(go-to-location port line column)
(match (read port)
- (('package inits ...)
+ ((or ('package inits ...)
+ ('package/inherit _ inits ...))
(let ((field (assoc field inits)))
(match field
((_ value)