From c254415ad113ee99cfa487ba90cff64ce48a24ce Mon Sep 17 00:00:00 2001 From: Fries Date: Sat, 6 Apr 2024 08:11:32 +0100 Subject: gnu: Add go-github-com-json-iterator-go. * gnu/packages/golang-web.scm (go-github-com-json-iterator-go): New variable. Signed-off-by: Sharlatan Hellseher Change-Id: I1e54402c9d45317918ef59513e110bc97fc0bc63 --- gnu/packages/golang-web.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'gnu/packages/golang-web.scm') diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index e19ca4f5ff..9ce4ab2cab 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -19,6 +19,7 @@ ;;; Copyright © 2022 jgart via Guix-patches via ;;; Copyright © 2022 muradm ;;; Copyright © 2022, 2023 Sharlatan Hellseher +;;; Copyright © 2023 Fries ;;; Copyright © 2023 Hilton Chain ;;; Copyright © 2023 Katherine Cox-Buday ;;; Copyright © 2023 Nicolas Graves @@ -1188,6 +1189,40 @@ Microsoft AD PAC authorization data.") transforms one JSON document into another through a JMESPath expression.") (license license:asl2.0))) +(define-public go-github-com-json-iterator-go + (package + (name "go-github-com-json-iterator-go") + (version "1.1.12") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/json-iterator/go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1c8f0hxm18wivx31bs615x3vxs2j3ba0v6vxchsjhldc8kl311bz")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/json-iterator/go")) + (native-inputs + (list go-github-com-davecgh-go-spew + go-github-com-google-gofuzz + go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-modern-go-concurrent + go-github-com-modern-go-reflect2)) + (home-page "https://github.com/json-iterator/go") + (synopsis "High-performance replacement for Golang @code{encoding/json}") + (description + "This package implements encoding and decoding of JSON as defined in +@uref{https://rfc-editor.org/rfc/rfc4627.html,RFC 4627} and provides +interfaces with identical syntax of standard lib encoding/json. Converting +from encoding/json to jsoniter is no more than replacing the package with +jsoniter and variable type declarations (if any). jsoniter interfaces gives +100% compatibility with code using standard lib.") + (license license:expat))) + (define-public go-github-com-julienschmidt-httprouter (package (name "go-github-com-julienschmidt-httprouter") -- cgit v1.2.3 From d3af0fd6d99e3843ddeebe9e05f2606ab8fa9e7d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 6 Apr 2024 22:50:33 +0100 Subject: gnu: go-github-com-multiformats-go-multiaddr: Adjust inputs. * gnu/packages/golang-web.scm (go-github-com-multiformats-go-multiaddr): [propagated-inputs]: Swap from native-inputs to propagated-inputs to access them from dependent packages. Remove go-github-com-mr-tron-base58, go-github-com-gxed-hashland-keccakpg, go-github-com-minio-blake2b-simd, go-github-com-minio-sha256-simd, go-github-com-spaolacci-murmur3; and go-golang-org-x-crypto. Change-Id: Ib98ea59cf43304d9f78091da4cfd45cdbc802ad4 --- gnu/packages/golang-web.scm | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'gnu/packages/golang-web.scm') diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 9ce4ab2cab..354133bf17 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1292,14 +1292,8 @@ router.") (arguments (list #:import-path "github.com/multiformats/go-multiaddr")) - (native-inputs - (list go-github-com-gxed-hashland-keccakpg - go-github-com-minio-blake2b-simd - go-github-com-minio-sha256-simd - go-github-com-mr-tron-base58 - go-github-com-multiformats-go-multihash - go-github-com-spaolacci-murmur3 - go-golang-org-x-crypto)) + (propagated-inputs + (list go-github-com-multiformats-go-multihash)) (home-page "https://github.com/multiformats/go-multiaddr") (synopsis "Composable and future-proof network addresses") (description -- cgit v1.2.3 From 090fd6a4da1a3fe2e24b6e23ee030c010ba0db16 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 6 Apr 2024 22:55:48 +0100 Subject: gnu: go-github-com-multiformats-go-multiaddr-net: Adjust inputs. * gnu/packages/golang-web.scm (go-github-com-multiformats-go-multiaddr-net): [propagated-inputs]: Swap from native-inputs to propagated-inputs to access them from dependent packages. Remove go-github-com-mr-tron-base58, go-github-com-gxed-hashland-keccakpg, go-github-com-minio-blake2b-simd, go-github-com-minio-sha256-simd, go-github-com-spaolacci-murmur3, go-golang-org-x-crypto; and go-github-com-multiformats-go-multihash Change-Id: I577c3813d6d5a6197103b8de6d4a9b2ba2db8bef --- gnu/packages/golang-web.scm | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'gnu/packages/golang-web.scm') diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 354133bf17..5c6d9126ef 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1334,15 +1334,8 @@ following: ;; TODO: Tests fail because they try to access the network. #:tests? #f #:import-path "github.com/multiformats/go-multiaddr-net")) - (native-inputs - (list go-github-com-gxed-hashland-keccakpg - go-github-com-minio-blake2b-simd - go-github-com-minio-sha256-simd - go-github-com-mr-tron-base58 - go-github-com-multiformats-go-multiaddr - go-github-com-multiformats-go-multihash - go-github-com-spaolacci-murmur3 - go-golang-org-x-crypto)) + (propagated-inputs + (list go-github-com-multiformats-go-multiaddr)) (home-page "https://github.com/multiformats/go-multiaddr-net") (synopsis "Multiaddress net tools") (description -- cgit v1.2.3