>From 47de2a85a1ae1f0502a89d0097d3b36da7d20649 Mon Sep 17 00:00:00 2001 From: Dion Mendel Date: Thu, 6 May 2021 23:25:22 +0800 Subject: [PATCH 1/2] gnu: Add go-golang-org-protobuf. * gnu/packages/golang.scm (go-golang-org-protobuf): New variable. --- gnu/packages/golang.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 8c3c81ceda..f0fa0e1d36 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -25,6 +25,7 @@ ;;; Copyright © 2020 Martin Becze ;;; Copyright © 2021 Ricardo Wurmus ;;; Copyright © 2021 Guillaume Le Vaillant +;;; Copyright © 2021 Dion Mendel ;;; ;;; This file is part of GNU Guix. ;;; @@ -4832,6 +4833,35 @@ data serialization format.") (home-page "https://github.com/golang/protobuf") (license license:bsd-3))) +(define-public go-golang-org-protobuf + (package + (name "go-golang-org-protobuf") + (version "1.26.0") + (home-page "https://github.com/protocolbuffers/protobuf-go") + (source (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit (string-append "v" version)))) + (sha256 + (base32 + "0xq6phaps6d0vcv13ga59gzj4306l0ki9kikhmb52h6pq0iwfqlz")))) + (build-system go-build-system) + (arguments + `(#:import-path "google.golang.org/protobuf" + ; Source-only package + #:tests? #f + #:phases + (modify-phases %standard-phases + (delete 'build)))) + (propagated-inputs + `(("go-github-com-google-go-cmp-cmp" ,go-github-com-google-go-cmp-cmp))) + (synopsis "Go support for Protocol Buffers") + (description "This project hosts the Go implementation for protocol buffers, which is a +language-neutral, platform-neutral, extensible mechanism for serializing +structured data.") + (license license:bsd-3))) + (define-public go-github-com-mattn-go-zglob (package (name "go-github-com-mattn-go-zglob") -- 2.31.1