diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-04-06 11:11:14 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-04-06 13:14:44 +0100 |
| commit | dccc807eb24791facc9e3144643f1526d101803e (patch) | |
| tree | 572023d792db7d0490fa5c15d493ef252e2a95bf /gnu | |
| parent | 4dcc9df560e824eca6a26c0943f3c18a84fa23d0 (diff) | |
gnu: go-gopkg-in-yaml-v2: Move to golang-xyz.
* gnu/packages/golang.scm (go-gopkg-in-yaml-v2): Move from here ...
* gnu/packages/golang-xyz.scm: ... to here.
Change-Id: I10f478aba8e9c836ce5cc03eb2fb59ff9f794fc5
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/golang-xyz.scm | 37 | ||||
| -rw-r--r-- | gnu/packages/golang.scm | 37 |
2 files changed, 37 insertions, 37 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 466f13631c2..4951afe6879 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm | |||
| @@ -2894,6 +2894,43 @@ Go.") | |||
| 2894 | (package-arguments go-github-com-op-go-logging) | 2894 | (package-arguments go-github-com-op-go-logging) |
| 2895 | ((#:import-path _) "gopkg.in/op/go-logging.v1"))))) | 2895 | ((#:import-path _) "gopkg.in/op/go-logging.v1"))))) |
| 2896 | 2896 | ||
| 2897 | (define-public go-gopkg-in-yaml-v2 | ||
| 2898 | (package | ||
| 2899 | (name "go-gopkg-in-yaml-v2") | ||
| 2900 | (version "2.4.0") | ||
| 2901 | (source | ||
| 2902 | (origin | ||
| 2903 | (method git-fetch) | ||
| 2904 | (uri (git-reference | ||
| 2905 | (url "https://gopkg.in/yaml.v2") | ||
| 2906 | (commit (string-append "v" version)))) | ||
| 2907 | (file-name (git-file-name name version)) | ||
| 2908 | (sha256 | ||
| 2909 | (base32 "1pbmrpj7gcws34g8vwna4i2nhm9p6235piww36436xhyaa10cldr")) | ||
| 2910 | (modules '((guix build utils))) | ||
| 2911 | (snippet | ||
| 2912 | #~(begin | ||
| 2913 | ;; https://github.com/go-yaml/yaml/issues/441 and | ||
| 2914 | ;; https://github.com/go-yaml/yaml/pull/442 | ||
| 2915 | ;; Don't assume 64-bit wide integers | ||
| 2916 | (substitute* "decode_test.go" | ||
| 2917 | (("bin: (-0b1000000000000000000000000000000000000000000000000000000000000000)" all number) | ||
| 2918 | (string-append "int64_min_base2: " number)) | ||
| 2919 | (("map\\[string\\]interface\\{\\}\\{\"bin\": -9223372036854775808\\}") | ||
| 2920 | "map[string]int64{\"int64_min_base2\": math.MinInt64}")))))) | ||
| 2921 | (build-system go-build-system) | ||
| 2922 | (arguments | ||
| 2923 | (list | ||
| 2924 | #:import-path "gopkg.in/yaml.v2")) | ||
| 2925 | (native-inputs | ||
| 2926 | (list go-gopkg-in-check-v1)) | ||
| 2927 | (home-page "https://gopkg.in/yaml.v2") | ||
| 2928 | (synopsis "YAML reader and writer for the Go language") | ||
| 2929 | (description | ||
| 2930 | "This package provides a Go library for encode and decode YAML | ||
| 2931 | values.") | ||
| 2932 | (license license:asl2.0))) | ||
| 2933 | |||
| 2897 | ;;; | 2934 | ;;; |
| 2898 | ;;; Executables: | 2935 | ;;; Executables: |
| 2899 | ;;; | 2936 | ;;; |
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 39d98afb45c..4ffcfadd42f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm | |||
| @@ -4240,43 +4240,6 @@ which satisfies the cron expression.") | |||
| 4240 | (description "Go library for ini files") | 4240 | (description "Go library for ini files") |
| 4241 | (license license:asl2.0))) | 4241 | (license license:asl2.0))) |
| 4242 | 4242 | ||
| 4243 | (define-public go-gopkg-in-yaml-v2 | ||
| 4244 | (package | ||
| 4245 | (name "go-gopkg-in-yaml-v2") | ||
| 4246 | (version "2.4.0") | ||
| 4247 | (source | ||
| 4248 | (origin | ||
| 4249 | (method git-fetch) | ||
| 4250 | (uri (git-reference | ||
| 4251 | (url "https://gopkg.in/yaml.v2.git") | ||
| 4252 | (commit (string-append "v" version)))) | ||
| 4253 | (file-name (git-file-name name version)) | ||
| 4254 | (sha256 | ||
| 4255 | (base32 | ||
| 4256 | "1pbmrpj7gcws34g8vwna4i2nhm9p6235piww36436xhyaa10cldr")) | ||
| 4257 | (modules '((guix build utils))) | ||
| 4258 | (snippet | ||
| 4259 | '(begin | ||
| 4260 | ;; https://github.com/go-yaml/yaml/issues/441 and | ||
| 4261 | ;; https://github.com/go-yaml/yaml/pull/442 | ||
| 4262 | ;; Don't assume 64-bit wide integers | ||
| 4263 | (substitute* "decode_test.go" | ||
| 4264 | (("bin: (-0b1000000000000000000000000000000000000000000000000000000000000000)" all number) | ||
| 4265 | (string-append "int64_min_base2: " number)) | ||
| 4266 | (("map\\[string\\]interface\\{\\}\\{\"bin\": -9223372036854775808\\}") | ||
| 4267 | "map[string]int64{\"int64_min_base2\": math.MinInt64}")))))) | ||
| 4268 | (build-system go-build-system) | ||
| 4269 | (arguments | ||
| 4270 | '(#:import-path "gopkg.in/yaml.v2")) | ||
| 4271 | (native-inputs | ||
| 4272 | (list go-gopkg-in-check-v1)) | ||
| 4273 | (home-page "https://gopkg.in/yaml.v2") | ||
| 4274 | (synopsis "YAML reader and writer for the Go language") | ||
| 4275 | (description | ||
| 4276 | "This package provides a Go library for encode and decode YAML | ||
| 4277 | values.") | ||
| 4278 | (license license:asl2.0))) | ||
| 4279 | |||
| 4280 | (define-public go-gopkg-in-yaml-v3 | 4243 | (define-public go-gopkg-in-yaml-v3 |
| 4281 | (package | 4244 | (package |
| 4282 | (name "go-gopkg-in-yaml-v3") | 4245 | (name "go-gopkg-in-yaml-v3") |
