diff options
| author | Bodertz <bodertz@noreply.codeberg.org> | 2025-09-20 18:23:36 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-02-26 12:16:31 +0000 |
| commit | 389f3fbb24545392bce57ec28b34965e3d09bcc6 (patch) | |
| tree | 38c0e8c622bace9cf209706d58b42e4ee480be74 /gnu/packages | |
| parent | 6176fcae15fbb9bbb7935da0f5d52b0e69353d04 (diff) | |
gnu: Add ruby-neatjson.
* gnu/packages/ruby-xyz.scm (ruby-neatjson): New variable.
Merges: https://codeberg.org/guix/guix/pulls/2826
Change-Id: I4d49d5a6d7db7d0889f50790aad08b56928ebd1e
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/ruby-xyz.scm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm index 87a1dabfdea..989bab4fdf3 100644 --- a/gnu/packages/ruby-xyz.scm +++ b/gnu/packages/ruby-xyz.scm @@ -3255,6 +3255,35 @@ take some source key material and generate suitable cryptographic keys from it." (home-page "https://github.com/jtdowney/hkdf") (license license:expat))) +(define-public ruby-neatjson + (package + (name "ruby-neatjson") + (version "0.10.5") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "neatjson" version)) + (sha256 + (base32 "0wm1lq8yl6rzysh3wg6fa55w5534k6ppiz0qb7jyvdy582mk5i0s")))) + (build-system ruby-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (if tests? + (invoke "ruby" "test/test_neatjson.rb") + (format #t "test suite not run~%"))))))) + (synopsis "JSON strings from Ruby objects generator") + (description + "This package implements a functionality of pretty-print JSON with more +formatting options than the built-in @code{JSON.pretty_generate}, such as +keeping arrays and objects on a single line when possible, aligning or sorting +object keys, customizing numeric representation, and more.") + (home-page "https://github.com/Phrogz/NeatJSON") + (license license:expat))) + (define-public ruby-nenv (package (name "ruby-nenv") |
