diff options
author | gemmaro <gemmaro.dev@gmail.com> | 2024-08-30 00:14:07 +0900 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-09-23 21:42:17 +0100 |
commit | 23cfb71db3a44c34fbb491152524fa4bd2d8fbba (patch) | |
tree | 1a43b22374994aa590c986f89704626076a576e5 | |
parent | ee2422cc3681a86d5dfe030561e36ea2467928be (diff) | |
download | guix-23cfb71db3a44c34fbb491152524fa4bd2d8fbba.tar guix-23cfb71db3a44c34fbb491152524fa4bd2d8fbba.tar.gz |
gnu: Add go-zgo-at-jfmt.
* gnu/packages/golang-xyz.scm (go-zgo-at-jfmt): New variable.
Change-Id: I3b8d37bf30dd4f1a1da657c5279a5e6efab55aea
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r-- | gnu/packages/golang-xyz.scm | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 37d81a973f..ba6adaeaf4 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -7347,6 +7347,47 @@ also provides V-style logging controlled by the @code{-v} and defined in @url{https://editorconfig.org/,https://editorconfig.org/}.") (license license:bsd-3))) +(define-public go-zgo-at-jfmt + (package + (name "go-zgo-at-jfmt") + (version "0.0.0-20240531161922-a97493b8db3c") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/arp242/jfmt") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0vm38kp46m1drxx16prbjwrc575vv7819ci16p96i0mksnnlfxj3")))) + (build-system go-build-system) + (arguments + (list + #:import-path "zgo.at/jfmt" + #:phases + #~(modify-phases %standard-phases + ;; Remove test data which failing during tests, see + ;; <https://github.com/arp242/jfmt/issues/1>. + (add-after 'unpack 'disable-failing-tests + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (for-each + (lambda (file) (delete-file file)) + '("testdata/escape.json" + "testdata/toml-test-key-escapes.json" + "testdata/toml-test-string-quoted-unicode.json")))))))) + (propagated-inputs + (list go-zgo-at-termtext + go-zgo-at-zli + go-zgo-at-zstd)) + (home-page "https://github.com/arp242/jfmt") + (synopsis "JSON formatter written in Go") + (description + "@samp{jfmt} is a JSON formatter which tries to produce opinionated +output with more lines squashed into single one where possible (e.g. list, +brackets, ordering).") + (license license:expat))) + (define-public go-zgo-at-runewidth (package (name "go-zgo-at-runewidth") |