From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KC6tEKwB+mC3AAAAgWs5BA (envelope-from ) for ; Fri, 23 Jul 2021 01:39:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QFhqDKwB+mDvUgAA1q6Kng (envelope-from ) for ; Thu, 22 Jul 2021 23:39:24 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CD09B1DD67 for ; Fri, 23 Jul 2021 01:39:23 +0200 (CEST) Received: from localhost ([::1]:53040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6iHi-0003qU-Gd for larch@yhetil.org; Thu, 22 Jul 2021 19:39:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6iHO-0003ms-Hx for guix-patches@gnu.org; Thu, 22 Jul 2021 19:39:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6iHO-0006Br-2I for guix-patches@gnu.org; Thu, 22 Jul 2021 19:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m6iHO-0001Mh-0X for guix-patches@gnu.org; Thu, 22 Jul 2021 19:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49494] [PATCH 0/7] Add nncp Resent-From: Sarah Morgensen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 22 Jul 2021 23:39:01 +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: Arun Isaac Cc: 49494@debbugs.gnu.org Received: via spool by 49494-submit@debbugs.gnu.org id=B49494.16269971415240 (code B ref 49494); Thu, 22 Jul 2021 23:39:01 +0000 Received: (at 49494) by debbugs.gnu.org; 22 Jul 2021 23:39:01 +0000 Received: from localhost ([127.0.0.1]:41855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6iHM-0001MS-N5 for submit@debbugs.gnu.org; Thu, 22 Jul 2021 19:39:00 -0400 Received: from out0.migadu.com ([94.23.1.103]:38164) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6iHK-0001MG-2p for 49494@debbugs.gnu.org; Thu, 22 Jul 2021 19:38:59 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1626997136; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mCkVAU3i5i01E7CcmVU9PcvzK2vROXdgON2ajYABlYk=; b=VADqz4nn4Lh72pAn6mG5CGSd3Vn54y7OT8TFkWfqRWeZwcZNAeync6egiDk5NT4MOH3XUr KOhXaZj10y50FioLRSf839nVuptFVUraTJjLpkbOcfqlgYdJQ6cBG2gBf8FrHnbDlhHgB9 vAXayhElKodvcLyxLcVZ3XpC6ic88QI= From: Sarah Morgensen References: <20210709161940.12759-1-arunisaac@systemreboot.net> <20210709161940.12759-6-arunisaac@systemreboot.net> Date: Thu, 22 Jul 2021 16:38:54 -0700 In-Reply-To: <20210709161940.12759-6-arunisaac@systemreboot.net> (Arun Isaac's message of "Fri, 9 Jul 2021 21:49:39 +0530") Message-ID: <86zgudrka9.fsf_-_@mgsn.dev> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: iskarian@mgsn.dev 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626997164; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=mCkVAU3i5i01E7CcmVU9PcvzK2vROXdgON2ajYABlYk=; b=jyshPeJKeVhnylHpGS9Idiktvz3cv2I4D+JoMuuo8UIjLE0w+rlAsjtTPVD4uSSVN/s5bP eHkcxRdP/84bwWr21g/So7fi8Ie4MJShWPyjitgj8vQpHoZEvZsO4NunbcE/SnawteJkPZ QVOQS0VHZi5C8V4/eJq5d22YfXpOdexdR58FSb3squJTOFGdyJYNKjH30yy1BQcRqdZ/JP AO5ehN0RECCsvUMmEEq8QDonoilo9UF+oYVAblJg5ixpEJbDvMFDGiG43qCuRIPGxSSfCd tXdVqwD/dOxSUQW3Z8fK4ElkDvPqnHtB5dRl0cpKPXHgq6lwXZ73rFhcuLHdhg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626997164; a=rsa-sha256; cv=none; b=If7Yxpo+K4Lq+tp+1D0WBw4s5aFCMSsEEPr0GwdctHK/zuFN//CC3R5wZk+gc5AJj9z9YJ hLIyae7rDSX9Wblp8tKxfgCBWEh0vfVWQ8NFWPs/fx9Y/lQOL/oVVEwSKk5fTEPaqkEjQc cJzHGjXXeZLlSF80xAYqKZiBSfzWzWn0nyTj47JlGLG3bklV0LG5eBHX02FtmNIN3DLXPg K6Sp06uitTbuDKVnCgxHgDzuR1anc3KWHf1bFmyjc7oykanvqZarSE6JLjuxtYLX2LrYdp LSS/Wt3njWrGgmCs7R5Pkcl7kJM1YvyxEM00P6yYoT0B7JSGhGkrsh3Hf1SVuw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b=VADqz4nn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mgsn.dev (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b=VADqz4nn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mgsn.dev (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: CD09B1DD67 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: qFQESjsnlxs0 Hi, Thanks for your patches. Arun Isaac writes: > * 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)))))))))) You can simplify this with the Guix built-in MAKE-FILE-WRITABLE and taking advantage of the facts that FIND-FILES can take a regex as PRED and does not follow symlinks or return directories by default: (for-each make-file-writable (find-files (assoc-ref outputs "out") ".*\\.t?gz$")) > + (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)))