~ruther/guix-local

d552c2508f891a92c465492984ff498dcc384651 — Simon Tournier 2 years ago 65dcfb3f3
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>
1 files changed, 2 insertions(+), 1 deletions(-)

M guix/packages.scm
M guix/packages.scm => guix/packages.scm +2 -1
@@ 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)