diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-02-26 13:11:13 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-02-26 13:11:19 +0000 |
| commit | 155a938b4d45098572d9ceb4dfc5d3ecbb914730 (patch) | |
| tree | 992b3f50376b3027e10f60216e0958cccb398c4e /gnu | |
| parent | 88040bb77136ebfb0ead32396d3a8b8d0256c33b (diff) | |
gnu: go-jsonnet: Simplify packaging.
* gnu/packages/golang-apps.scm (go-jsonnet)[arguments] <import-path>:
Use ellipsis (...) to build all commands at once.
<phases>: Use default 'build and 'install phases.
Change-Id: I2d65928c2f914e5f78bc26f2c7b26d0674ea2117
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/golang-apps.scm | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/gnu/packages/golang-apps.scm b/gnu/packages/golang-apps.scm index 1f63b699f3c..93dd03cdb4b 100644 --- a/gnu/packages/golang-apps.scm +++ b/gnu/packages/golang-apps.scm @@ -129,26 +129,8 @@ that handle none of the event types.") (arguments (list #:install-source? #f - #:import-path "github.com/google/go-jsonnet/cmd/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))))))) + #:import-path "github.com/google/go-jsonnet/cmd/..." + #:unpack-path "github.com/google/go-jsonnet")) (native-inputs (list go-github-com-fatih-color go-github-com-sergi-go-diff |
