diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 4cecefc5a3..a5d199df2c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5933,33 +5933,34 @@ (define-public go-github-com-google-go-cmp-cmp (package (name "go-github-com-google-go-cmp-cmp") (version "0.6.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/google/go-cmp") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1n1j4hi50bl05pyys4i7y417k9g6k1blslj27z327qny7kkdl2ma")))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/google/go-cmp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1n1j4hi50bl05pyys4i7y417k9g6k1blslj27z327qny7kkdl2ma")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/google/go-cmp/cmp" - #:unpack-path "github.com/google/go-cmp" - #:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key inputs #:allow-other-keys #:rest args) - (unless - ;; The tests fail when run with gccgo. - (false-if-exception (search-input-file inputs "/bin/gccgo")) - (apply (assoc-ref %standard-phases 'check) args))))))) + (list + #:import-path "github.com/google/go-cmp/cmp" + #:unpack-path "github.com/google/go-cmp" + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs #:allow-other-keys #:rest args) + (unless + ;; The tests fail when run with gccgo. + (false-if-exception (search-input-file inputs "/bin/gccgo")) + (apply (assoc-ref %standard-phases 'check) args))))))) (synopsis "Determine equality of values in Go") + (home-page "https://github.com/google/go-cmp") (description "This package is intended to be a more powerful and safer -alternative to @@code{reflect.DeepEqual} for comparing whether two values are +alternative to @code{reflect.DeepEqual} for comparing whether two values are semantically equal.") - (home-page "https://github.com/google/go-cmp") (license license:bsd-3))) (define-public go-github-com-google-uuid