gnu: go-github-com-klauspost-compress: Move to golang-compression.

* gnu/packages/golang.scm (go-github-com-klauspost-compress): Move from here ...
* gnu/packages/golang-compression.scm: ... to here.

* gnu/packages/golang-compression.scm: Add (gnu packages
golang-compression) module.
* gnu/packages/golang-crypto.scm: As above.
* gnu/packages/golang-web.scm: As above.
* gnu/packages/uucp.scm: As above.

Change-Id: Ia99f1e6aae7f75940fc150eb02862c0b3e9f3325
This commit is contained in:
Sharlatan Hellseher 2024-02-10 22:06:15 +00:00
parent 19c8f9e0fe
commit d8f69addc2
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5
5 changed files with 35 additions and 33 deletions

View file

@ -56,6 +56,37 @@ (define-public go-github-com-golang-snappy
compression format.")
(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 make-file-writable
(find-files (assoc-ref outputs "out") ".gz$")))))))
(propagated-inputs
(list 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)))
;;;
;;; 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

View file

@ -45,7 +45,8 @@ (define-module (gnu packages golang-crypto)
#:use-module (gnu packages)
#:use-module (gnu packages golang)
#:use-module (gnu packages golang-build)
#:use-module (gnu packages golang-check))
#:use-module (gnu packages golang-check)
#:use-module (gnu packages golang-compression))
;;; Commentary:
;;;

View file

@ -50,6 +50,7 @@ (define-module (gnu packages golang-web)
#:use-module (gnu packages golang)
#:use-module (gnu packages golang-build)
#:use-module (gnu packages golang-check)
#:use-module (gnu packages golang-compression)
#:use-module (gnu packages golang-crypto)
#:use-module (gnu packages golang-xyz)
#:use-module (gnu packages tls)

View file

@ -9498,38 +9498,6 @@ (define-public go-github-com-dustin-go-humanize
back.")
(license license:expat)))
(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 make-file-writable
(find-files (assoc-ref outputs "out") ".gz$")))))))
(propagated-inputs
(list 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)))
(define-public go-github-com-oneofone-xxhash
(package
(name "go-github-com-oneofone-xxhash")

View file

@ -20,6 +20,7 @@
(define-module (gnu packages uucp)
#:use-module (gnu packages golang)
#:use-module (gnu packages golang-build)
#:use-module (gnu packages golang-compression)
#:use-module (gnu packages golang-crypto)
#:use-module (gnu packages golang-web)
#:use-module (gnu packages texinfo)