From patchwork Mon Apr 1 10:43:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 62427 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 6954F27BBF1; Mon, 1 Apr 2024 11:44:55 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 BC3E327BBEA for ; Mon, 1 Apr 2024 11:44:49 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rrF91-0006rC-PM; Mon, 01 Apr 2024 06:44:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rrF91-0006qk-50 for guix-patches@gnu.org; Mon, 01 Apr 2024 06:44:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rrF90-0002N2-Sr for guix-patches@gnu.org; Mon, 01 Apr 2024 06:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rrF93-0005t6-Tn for guix-patches@gnu.org; Mon, 01 Apr 2024 06:44:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70123] [PATCH 05/12] gnu: Add go-github-com-pierrec-lz4. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 01 Apr 2024 10:44:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70123 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70123@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 70123-submit@debbugs.gnu.org id=B70123.171196824422608 (code B ref 70123); Mon, 01 Apr 2024 10:44:05 +0000 Received: (at 70123) by debbugs.gnu.org; 1 Apr 2024 10:44:04 +0000 Received: from localhost ([127.0.0.1]:49662 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrF91-0005sE-M6 for submit@debbugs.gnu.org; Mon, 01 Apr 2024 06:44:04 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:60739) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrF8y-0005qT-40 for 70123@debbugs.gnu.org; Mon, 01 Apr 2024 06:44:00 -0400 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-4156684ee9cso3532955e9.1 for <70123@debbugs.gnu.org>; Mon, 01 Apr 2024 03:43:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711968231; x=1712573031; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Q4Nsc6/dC4WIByEQ1AFy/Z3654zjyratPRYVuh3aquQ=; b=m64nhM8+hCeMPDD5N9XZh3GSI28BLw2bkk9Mj0ZmUdHhMj8S27sczk/xMsPSTZoE3f wcOUir4RVrTxkdB3P+56bSPqj8SAXELyamGpnIBcvTcP+sxB2qB41hrIzMEaFKRS25Yp Ywd2tXRTamjQ/Aa/uNiVH1piGScCkAnlB/K0KGpUhIW453VhRlD4wtJBIzhk7tdea9A0 q5slx6JLGOB/Z/VgIAe2U/a/3T/Jo1rcbuB7rjel/rxbeaqovKS+lIaofEsTV9Olu4qs WQPA95pu8SaJgqZV2pDKg+SF2wgINF0Uks6+Ffj2NlzjinbMmCjt5Sk9f3KjJmjr/5wK UARw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711968231; x=1712573031; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q4Nsc6/dC4WIByEQ1AFy/Z3654zjyratPRYVuh3aquQ=; b=WtFE7FhguA2aHPAhXJXwxr1VyAStHkk6a7SLVvBOfUrk1uljy9xhjQIUur5uWR86lf hsG0rYsBQhVBP66O4bmXE4D0du5CLJVTxIvp2vJ16hDyrC036MjM+KCCM2f6D9P//vBo qI/mTABZr9jfwuc4KkQaGOGGtOGWDL5Z2s4cLVBLyRyXJg/P4ab6z03khH+ihbD2Si4B q9ufXW0d17Oi2jXrRvUdBuXjhEtisXQONA4BaqBcybonSTBbDQmop+x46z3pX8/WhObO U64fYWwYZNKxqYVqSzBQwMyHVgEWldYGWs9hFBjpvGC8HHpt7Z96JuIe0cUVezBFLo9s osGA== X-Gm-Message-State: AOJu0YxqwgWnDnEAK7J3S2akvyBsOh/LXj5kdSEsnT8s9uXAk63+OZjn dpejKiQK/bz1mweeJ2amYlN4BzNOnivGEX6qGrI769lWL7J+g1KuHMlv7ZcM/X8= X-Google-Smtp-Source: AGHT+IGDMRze0H3zEyPs+z7ql63iH15elb67rA3BsQseas4PZZVqPX0BjWYuA3z1rrwcQ6KgihQ8YA== X-Received: by 2002:a05:600c:458b:b0:413:1741:28b5 with SMTP id r11-20020a05600c458b00b00413174128b5mr6822471wmo.9.1711968231062; Mon, 01 Apr 2024 03:43:51 -0700 (PDT) Received: from localhost.localdomain (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id iv16-20020a05600c549000b004146a1bf590sm17468404wmb.32.2024.04.01.03.43.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 03:43:50 -0700 (PDT) From: Sharlatan Hellseher Date: Mon, 1 Apr 2024 11:43:35 +0100 Message-ID: <7280842eb030696a5fe2344766d920b39980385b.1711915492.git.sharlatanus@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/golang-compression.scm (go-github-com-pierrec-lz4, go-github-com-pierrec-lz4-v4, go-lz4c): New variables. Change-Id: Ie337a1cbfbc5af2dfd258999a4edb508bd552e03 --- gnu/packages/golang-compression.scm | 71 ++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-compression.scm b/gnu/packages/golang-compression.scm index a1ad00f588..f40664d8f7 100644 --- a/gnu/packages/golang-compression.scm +++ b/gnu/packages/golang-compression.scm @@ -28,7 +28,8 @@ (define-module (gnu packages golang-compression) #:use-module (guix git-download) #:use-module (guix packages) #:use-module (guix utils) - #:use-module (gnu packages)) + #:use-module (gnu packages) + #:use-module (gnu packages golang-xyz)) ;;; Commentary: ;;; @@ -190,6 +191,52 @@ (define-public go-github-com-nwaples-rardecode-v2 "This package provides a library for reading RAR archives with Golang.") (license license:bsd-2))) +(define-public go-github-com-pierrec-lz4 + (package + (name "go-github-com-pierrec-lz4") + (version "2.6.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pierrec/lz4") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0vfn01gd3hcpbj6gb4ig3pw6bv0g4j5780awr0fv4kf9id8gjvyy")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/pierrec/lz4")) + (home-page "https://github.com/pierrec/lz4") + (synopsis "LZ4 compression in pure Go") + (description + "@code{lz4} provides a streaming interface to +@url{http://fastcompression.blogspot.fr/2013/04/lz4-streaming-format-final.html, +LZ4 data streams} as well as low level compress and uncompress functions for +LZ4 data blocks. The implementation is based on the reference C +@url{https://github.com/lz4/lz4, one}.") + (license license:bsd-3))) + +(define-public go-github-com-pierrec-lz4-v4 + (package + (inherit go-github-com-pierrec-lz4) + (name "go-github-com-pierrec-lz4-v4") + (version "4.1.21") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pierrec/lz4") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0nc2aprbw4s6cx2mijaqdswkgnizx8fqb0mzha82wrznl3gz69ni")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/pierrec/lz4/v4")))) + (define-public go-github-com-ulikunitz-xz (package (name "go-github-com-ulikunitz-xz") @@ -216,6 +263,28 @@ (define-public go-github-com-ulikunitz-xz any dependency on any C code.") (license license:bsd-3))) +;;; +;;; Executables: +;;; + +(define-public go-lz4c + (package + (inherit go-github-com-pierrec-lz4-v4) + (name "go-lz4c") + (arguments + (list + #:install-source? #f + #:import-path "github.com/pierrec/lz4/cmd/lz4c" + #:unpack-path "github.com/pierrec/lz4")) + (native-inputs + (list go-code-cloudfoundry-org-bytefmt + go-github-com-pierrec-cmdflag + go-github-com-schollz-progressbar-v3)) + (description + (string-append (package-description go-github-com-pierrec-lz4-v4) + " This package provides an additional command line +interface tool to compress and decompress LZ4 files.")))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar