guix_mirror_bot pushed a commit to branch go-team
in repository guix.
commit a91c84a92661c053334831e76f52d22fb9222aae
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Mar 6 14:24:45 2026 +0000
gnu: Add go-github-com-shopify-ejson.
* gnu/packages/golang-crypto.scm (go-github-com-shopify-ejson, go-ejson):
New variables.
Change-Id: I9758d095ca10f4ccfff4381466f863620895107b
---
gnu/packages/golang-crypto.scm | 60 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index 9c7bd926ea..5cf8039dba 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -2936,6 +2936,49 @@ tunnel proxy protocol.")
user-defined collections.")
(license license:expat)))
+(define-public go-github-com-shopify-ejson
+ (package
+ (name "go-github-com-shopify-ejson")
+ (version "1.5.4")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Shopify/ejson")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "04rwm109sha6pla99zbmp1d7808w55iw2kyd6qbqsr6dm02mxxdk"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/Shopify/ejson"
+ #:test-flags
+ #~(list "-vet=off")))
+ (native-inputs
+ (list go-github-com-urfave-cli))
+ (propagated-inputs
+ (list go-github-com-dustin-gojson
+ go-github-com-smartystreets-goconvey
+ go-golang-org-x-crypto))
+ (home-page "https://github.com/Shopify/ejson")
+ (synopsis "Library to manage encrypted secrets using asymmetric
encryption")
+ (description
+ "@command{ejson} is a utility (CLI and Go library) for managing a
+collection of secrets in source control.
+
+The secrets are encrypted using
+@url{http://en.wikipedia.org/wiki/Public-key_cryptography, public key},
+@url{http://en.wikipedia.org/wiki/Elliptic_curve_cryptography, elliptic curve}
+cryptography (@url{http://nacl.cr.yp.to/, NaCl Box}:
+@url{http://en.wikipedia.org/wiki/Curve25519, Curve25519} +
+@url{http://en.wikipedia.org/wiki/Salsa20, Salsa20} +
+@url{http://en.wikipedia.org/wiki/Poly1305-AES, Poly1305-AES}). Secrets are
+collected in a JSON file, in which all the string values are encrypted.
+Public keys are embedded in the file, and the decrypter looks up the
+corresponding private key from its local filesystem.")
+ (license license:expat)))
+
(define-public go-github-com-skeema-knownhosts
(package
(name "go-github-com-skeema-knownhosts")
@@ -3955,6 +3998,23 @@ tools."))))
(define-deprecated-package age-keygen
age)
+(define-public go-ejson
+ (package/inherit go-github-com-shopify-ejson
+ (name "go-ejson")
+ (arguments
+ (substitute-keyword-arguments
+ (package-arguments go-github-com-shopify-ejson)
+ ((#:tests? _ #t) #f)
+ ((#:skip-build? _ #t) #f)
+ ((#:install-source? _ #t) #f)
+ ((#:import-path _) "github.com/Shopify/ejson/cmd/ejson")
+ ((#:unpack-path _ "") "github.com/Shopify/ejson")))
+ (native-inputs
+ (append
+ (package-native-inputs go-github-com-shopify-ejson)
+ (package-propagated-inputs go-github-com-shopify-ejson)))
+ (propagated-inputs '())))
+
(define-public go-imohash
(package/inherit go-github-com-kalafut-imohash
(name "go-imohash")