~ruther/guix-local

4f54185a55745ebd077bb20ef993ad35e687d5c4 — Sharlatan Hellseher 1 year, 4 months ago 72ac2b3
gnu: yq: Simplify.

* gnu/packages/web.scm (yq) [arguments]: Inherit from
go-github-com-mikefarah-yq-v4.
<import-path>: Adjust it to produce correct binary.
<skip-build?>: Build it this time.
<tests?>: Everything is tested in library package.
<phases>: Remove 'rename-binary.

Change-Id: Ib917d17e160bd379f95c2439c32905191a1aeab6
1 files changed, 6 insertions(+), 9 deletions(-)

M gnu/packages/web.scm
M gnu/packages/web.scm => gnu/packages/web.scm +6 -9
@@ 5573,15 5573,12 @@ JSON, XML, properties, CSV and TSV.")
    (inherit go-github-com-mikefarah-yq-v4)
    (name "yq")
    (arguments
     (list #:install-source? #f
           #:import-path "github.com/mikefarah/yq/v4"
           #:test-subdirs #~(list ".") ; XXX: try to enable all tests
           #:phases
           #~(modify-phases %standard-phases
               (add-after 'install 'rename-binary
                 (lambda _
                   (rename-file (string-append #$output "/bin/v4")
                                (string-append #$output "/bin/yq")))))))
     (substitute-keyword-arguments
         (package-arguments go-github-com-mikefarah-yq-v4)
       ((#:install-source? _ #t) #f)
       ((#:skip-build? _ #t) #f)
       ((#:tests? _ #t) #f)
       ((#:import-path _) "github.com/mikefarah/yq")))
    (propagated-inputs '())
    (inputs (package-propagated-inputs go-github-com-mikefarah-yq-v4))))