From e31bde811f4c262410b129110836ec4f576989f4 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Sat, 28 Jan 2023 15:46:09 +0800 Subject: [PATCH] rosenthal: Add go-github-com-go-playground-validator-v10. * rosenthal/packages/golang.scm (go-github-com-go-playground-validator-v10): New variable. --- rosenthal/packages/golang.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/rosenthal/packages/golang.scm b/rosenthal/packages/golang.scm index 2d53b57..69b9f77 100644 --- a/rosenthal/packages/golang.scm +++ b/rosenthal/packages/golang.scm @@ -56,6 +56,36 @@ Go testing, with building blocks for custom assertions.") (license license:expat))) +(define-public go-github-com-go-playground-validator-v10 + (package + (name "go-github-com-go-playground-validator-v10") + (version "10.11.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-playground/validator") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "03sd3gd3pl2bv07ivrixp3h5hrw1d1llrpjdalh9jbgby0x2f8ig")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/go-playground/validator/v10")) + (propagated-inputs + (list go-github-com-go-playground-universal-translator + go-github-com-leodido-go-urn + go-golang-org-x-crypto + go-golang-org-x-text)) + (native-inputs + (list go-github-com-go-playground-assert-v2)) + (home-page "https://github.com/go-playground/validator") + (synopsis "Go Struct and Field validator") + (description + "This package provides a Go validator which implements value validations +for structs and individual fields based on tags.") + (license license:expat))) + (define-public go-github-com-google-gopacket (package (name "go-github-com-google-gopacket")