From patchwork Fri Jul 9 16:19:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 31261 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 3732027BC81; Fri, 9 Jul 2021 17:23:25 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E76CB27BC78 for ; Fri, 9 Jul 2021 17:23:24 +0100 (BST) Received: from localhost ([::1]:36576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1tHg-0004h2-0N for patchwork@mira.cbaines.net; Fri, 09 Jul 2021 12:23:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1tES-00062a-DZ for guix-patches@gnu.org; Fri, 09 Jul 2021 12:20:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48045) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1tER-0005XX-Gp for guix-patches@gnu.org; Fri, 09 Jul 2021 12:20:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m1tER-0004K4-Dg for guix-patches@gnu.org; Fri, 09 Jul 2021 12:20:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49494] [PATCH 6/7] gnu: Add go-github-com-klauspost-compress. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 09 Jul 2021 16:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49494 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49494@debbugs.gnu.org Cc: Arun Isaac Received: via spool by 49494-submit@debbugs.gnu.org id=B49494.162584759516558 (code B ref 49494); Fri, 09 Jul 2021 16:20:03 +0000 Received: (at 49494) by debbugs.gnu.org; 9 Jul 2021 16:19:55 +0000 Received: from localhost ([127.0.0.1]:59582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1tEI-0004Iu-Vy for submit@debbugs.gnu.org; Fri, 09 Jul 2021 12:19:55 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:42062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1tE9-0004Ho-5G for 49494@debbugs.gnu.org; Fri, 09 Jul 2021 12:19:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=HZlzQApziDHevvV0UuzIq/82Mxj7j/t0P2hWCyLs4mE=; b=NWAtW9aHwOAEzQVFvx2xHQRZIp kxWCVqSMVk0rH483LxZFjSjNPLIdITbHyg0Phf+5fDrAky+p6jRKbJ4LuGunC7BqNtXxNhelOIy/X nmRAhNHWattW1l19RcIxe04zVx3eWNDTlYW4B+FpmiX3mhM5gEAUi7odkV9uc0M5mWeusCAVwWujG Xs3/UM2fcQXucAeJODfw0EQGMspEW2TYpiNfBHUMQ98wFVY4CPuOPwnP55DqdqaMB76/bOoygqmgb phR5sykTO4V9OQ4aer1Amaymn/zMF4ii8tdLoyDDGQDfbjJew1jwJ3ho6zvLOuIaEVPI6ks8dUDOw s2NrFvGA==; Received: from [192.168.2.1] (helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1m1tE7-000ASF-CA; Fri, 09 Jul 2021 21:49:43 +0530 From: Arun Isaac Date: Fri, 9 Jul 2021 21:49:39 +0530 Message-Id: <20210709161940.12759-6-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210709161940.12759-1-arunisaac@systemreboot.net> References: <20210709161940.12759-1-arunisaac@systemreboot.net> MIME-Version: 1.0 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-github-com-klauspost-compress): New variable. --- gnu/packages/golang.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5a7f27bc91..ef54e15afc 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -67,6 +67,7 @@ #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages pulseaudio) + #:use-module (gnu packages syncthing) #:use-module (gnu packages terminals) #:use-module (gnu packages textutils) #:use-module (gnu packages tls) @@ -8352,3 +8353,39 @@ is a low-level framework for building crypto protocols. Noise protocols support mutual and optional authentication, identity hiding, forward secrecy, zero round-trip encryption, and other advanced features.") (license license:bsd-3))) + +(define-public go-github-com-klauspost-compress + (package + (name "go-github-com-klauspost-compress") + (version "1.13.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/klauspost/compress") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0ydnf9rizlhm8rilh14674qqx272sbwbkjx06xn9pqvy6mmn2r3r")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/klauspost/compress" + #:phases + (modify-phases %standard-phases + (add-before 'reset-gzip-timestamps 'fix-permissions + (lambda* (#:key outputs #:allow-other-keys) + ;; Provide write permissions on gzip files so that + ;; reset-gzip-timestamps has sufficient permissions. + (for-each (lambda (file) + (chmod file #o644)) + (find-files (assoc-ref outputs "out") + (lambda (file stat) + (and (eq? 'regular (stat:type stat)) + (string-suffix? ".gz" file)))))))))) + (propagated-inputs + `(("go-github-com-golang-snappy" ,go-github-com-golang-snappy))) + (home-page "https://github.com/klauspost/compress") + (synopsis "Go compression library") + (description "@code{compress} provides various compression algorithms.") + (license license:bsd-3)))