~ruther/guix-local

130cd50a68b94a0fd33da9102f28b13c4d78bd41 — François Joulaud 8 months ago 78f2b7e
gnu: go-jsonnet: Build all CLI tools.

* gnu/packages/golang-apps.scm (go-jsonnet): Build jsonnetfmt and jsonnet-deps.
[phases]: Replace build phase with one installing three binaries.

Change-Id: Ib0bf4234f0dc840c085cfcf3e7b2aba01553fc3d
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 19 insertions(+), 1 deletions(-)

M gnu/packages/golang-apps.scm
M gnu/packages/golang-apps.scm => gnu/packages/golang-apps.scm +19 -1
@@ 129,7 129,25 @@ that handle none of the event types.")
     (list
      #:install-source? #f
      #:import-path "github.com/google/go-jsonnet/cmd/jsonnet"
      #:unpack-path "github.com/google/go-jsonnet"))
      #:unpack-path "github.com/google/go-jsonnet"
      #:phases
      #~(let ((all-import-paths
               (list "github.com/google/go-jsonnet/cmd/jsonnet"
                     "github.com/google/go-jsonnet/cmd/jsonnetfmt"
                     "github.com/google/go-jsonnet/cmd/jsonnet-deps")))
          (modify-phases %standard-phases
            (replace 'build
              (lambda arguments
                (for-each (lambda (cmd)
                            (apply (assoc-ref %standard-phases 'build)
                                   `(,@arguments #:import-path ,cmd)))
                          all-import-paths)))
            (replace 'install
              (lambda arguments
                (for-each (lambda (cmd)
                            (apply (assoc-ref %standard-phases 'install)
                                   `(,@arguments #:import-path ,cmd)))
                          all-import-paths)))))))
    (native-inputs
     (list go-github-com-fatih-color
           go-github-com-sergi-go-diff