From: Simon Tournier <zimon.toutoune@gmail.com>
To: 65757@debbugs.gnu.org
Cc: Simon Tournier <zimon.toutoune@gmail.com>, <maxim.cournoyer@gmail.com>
Subject: [bug#65757] [PATCH] guix: packages: Support package/inherit by package-field-location.
Date: Tue, 5 Sep 2023 16:37:32 +0200 [thread overview]
Message-ID: <6cefcfecf409ffdd5fe856c23fbbc7b9cae7161d.1693924596.git.zimon.toutoune@gmail.com> (raw)
Fixes <https://issues.guix.gnu.org//65236>.
Reported by Maxim Cournoyer <maxim.cournoyer@gmail.com>.
* guix/packages.scm (package-field-location): Add package/inherit case.
---
guix/packages.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/guix/packages.scm b/guix/packages.scm
index ba98bb0fb484..821eddb72d5d 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -761,7 +761,8 @@ (define (package-field-location package field)
(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)
base-commit: bedcdf0fb5ac035f696790827679406c7146396c
--
2.38.1
next reply other threads:[~2023-09-05 14:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-05 14:37 Simon Tournier [this message]
2023-09-06 20:41 ` bug#65757: [PATCH] guix: packages: Support package/inherit by package-field-location Maxim Cournoyer
2023-09-06 22:01 ` [bug#65757] " Simon Tournier
2023-09-07 1:55 ` Maxim Cournoyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6cefcfecf409ffdd5fe856c23fbbc7b9cae7161d.1693924596.git.zimon.toutoune@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=65757@debbugs.gnu.org \
--cc=maxim.cournoyer@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.