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>
This commit is contained in:
parent
65dcfb3f38
commit
d552c2508f
1 changed files with 2 additions and 1 deletions
|
@ -761,7 +761,8 @@ object."
|
||||||
(lambda (port)
|
(lambda (port)
|
||||||
(go-to-location port line column)
|
(go-to-location port line column)
|
||||||
(match (read port)
|
(match (read port)
|
||||||
(('package inits ...)
|
((or ('package inits ...)
|
||||||
|
('package/inherit _ inits ...))
|
||||||
(let ((field (assoc field inits)))
|
(let ((field (assoc field inits)))
|
||||||
(match field
|
(match field
|
||||||
((_ value)
|
((_ value)
|
||||||
|
|
Reference in a new issue