From patchwork Fri Mar 25 13:31:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Leo_Nikkil=C3=A4?= X-Patchwork-Id: 38057 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3060F27BBEA; Fri, 25 Mar 2022 14:10:55 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5B84827BBE9 for ; Fri, 25 Mar 2022 14:10:54 +0000 (GMT) Received: from localhost ([::1]:47196 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXkeT-0000pY-EN for patchwork@mira.cbaines.net; Fri, 25 Mar 2022 10:10:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXkdj-0000kl-ON for guix-patches@gnu.org; Fri, 25 Mar 2022 10:10:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58167) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXkdj-0004an-G9 for guix-patches@gnu.org; Fri, 25 Mar 2022 10:10:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nXkdj-00039d-6w for guix-patches@gnu.org; Fri, 25 Mar 2022 10:10:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54560] [PATCH 01/47] gnu: Add go-google-golang-org-protobuf. References: <20220325055517.2060-1-hello@lnikki.la> In-Reply-To: <20220325055517.2060-1-hello@lnikki.la> Resent-From: Leo =?utf-8?q?Nikkil=C3=A4?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Mar 2022 14:10:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54560 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54560@debbugs.gnu.org Cc: Leo =?utf-8?q?Nikkil=C3=A4?= Received: via spool by 54560-submit@debbugs.gnu.org id=B54560.164821736111713 (code B ref 54560); Fri, 25 Mar 2022 14:10:07 +0000 Received: (at 54560) by debbugs.gnu.org; 25 Mar 2022 14:09:21 +0000 Received: from localhost ([127.0.0.1]:51968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXkcy-00032j-S0 for submit@debbugs.gnu.org; Fri, 25 Mar 2022 10:09:21 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:48633) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXk3z-0001db-KA for 54560@debbugs.gnu.org; Fri, 25 Mar 2022 09:33:12 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id E245332005C1; Fri, 25 Mar 2022 09:33:04 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 25 Mar 2022 09:33:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lnikki.la; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm2; bh=deTLTmJaw+WTRpOs6O4JtHhI10amOtGD8lijaY q49zs=; b=rzNbDGPZgzj3AGZYEWVyjjj53RkkAtSwfCqHNxDuYRohyeNej0Ispt a1hmia0AvL8sGfVw9HvgWQTpd+ZUYlTfHz2H98PEup1bw+zHOGz/zzGh2Sgn5kZz FdS6mwBiaKPjcbeoAKsHB9EDDfL6/il3HpKhUHmACSaxsM9+AU136PmiwmSOjiCg 5xABOpd6yMRWwkDhIXy93PuXulVS+/QI/BUk85xPwLgBXH+ZYMUZFW85DbP4SuwV G0SRzPavywE9Ypq44QnHT06Otef1xzzDEnxq20+mgho6yZe/kLoXKV5r3jvyhOet wdPwxuBbDnS+sr7NSLUqf5IBYZAphvNg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=deTLTm Jaw+WTRpOs6O4JtHhI10amOtGD8lijaYq49zs=; b=lZCJdx5PPaTwFODMhC/RKK NREcBDVL9rZbW5f/Ll/tvOAx0p+i09x8jYMGRSQ7lRyqiHzxnqm4N9/9DTiRc94p dj0lQRlpCp9mc9i/+D2nToW/hHPH87mjo7sCT78VAvntU+tl6zX2rS5bUVCOiEks uUPtfEDMQNix2K6y+y21uaP97f76JeNzOqmHbLM1k1D+3Ju1DEf7BfhUBBi8c28S AcuTp0l6eTOOYS/vwXwEer+2+/SA0+ujzoKzLiEgA7i4fT0n+PKX284v5rMlvP8T S7VSeH17GscGQl1lyzYdrqFip+wfRGunrJ7uyuMc5tw7bqAafu4vwQg0FOqxXElQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudehuddghedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofggtgfgsehtkeertd ertdejnecuhfhrohhmpefnvghoucfpihhkkhhilhomuceohhgvlhhloheslhhnihhkkhhi rdhlrgeqnecuggftrfgrthhtvghrnhepteevtedtkeeugfeuffeiuedvteduuddvveegve ejveekueetgeelhfeiteffleejnecuffhomhgrihhnpehgihhthhhusgdrtghomhdpghho lhgrnhhgrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhephhgvlhhloheslhhnihhkkhhirdhlrg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 25 Mar 2022 09:33:03 -0400 (EDT) From: Leo =?utf-8?q?Nikkil=C3=A4?= Date: Fri, 25 Mar 2022 15:31:25 +0200 Message-Id: <20220325133211.5128-1-hello@lnikki.la> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 25 Mar 2022 10:09:18 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/golang.scm (go-google-golang-org-protobuf): New variable. --- gnu/packages/golang.scm | 43 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a8b845e301..455c4daf30 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -33,6 +33,7 @@ ;;; Copyright © 2021 Chadwain Holness ;;; Copyright © 2021 Philip McGrath ;;; Copyright © 2021 Lu Hui +;;; Copyright © 2022 Leo Nikkilä ;;; ;;; This file is part of GNU Guix. ;;; @@ -9774,3 +9775,45 @@ (define-public go-github-com-go-chi-chi-v5 "@code{go-github-com-go-chi-chi-v5} is an HTTP router that lets the user decompose request handling into many smaller layers.") (license license:expat))) + +(define-public go-google-golang-org-protobuf + (package + (name "go-google-golang-org-protobuf") + (version "1.27.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/protocolbuffers/protobuf-go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0aszb7cv8fq1m8akgd4kjyg5q7g5z9fdqnry6057ygq9r8r2yif2")))) + (build-system go-build-system) + (arguments + '(#:import-path "google.golang.org/protobuf" + #:phases + (let ((glob-path "google.golang.org/protobuf/...")) + (modify-phases %standard-phases + (replace 'build + (lambda args + (apply (assoc-ref %standard-phases + 'build) + `(,@args #:import-path + ,glob-path)))) + (replace 'check + (lambda args + (apply (assoc-ref %standard-phases + 'check) + `(,@args #:import-path + ,glob-path)))))))) + (native-inputs (list go-github-com-google-go-cmp-cmp)) + (synopsis "Go support for Google's protocol buffers") + (description + "Go implementation for protocol buffers, which is a +language-neutral, platform-neutral, extensible mechanism for serializing +structured data. The protocol buffer language is a language for +specifying the schema for structured data. This schema is compiled into +language specific bindings.") + (home-page "https://github.com/protocolbuffers/protobuf-go") + (license license:bsd-3)))