[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/07: gnu: pigz: Use G-expressions.
From: |
guix-commits |
Subject: |
03/07: gnu: pigz: Use G-expressions. |
Date: |
Sat, 21 May 2022 21:39:27 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit d1ad5ad828c3300fd53b3959925b22f28b6de977
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun May 15 02:00:05 2022 +0200
gnu: pigz: Use G-expressions.
* gnu/packages/compression.scm (pigz)[arguments]:
Rewrite as G-expressions. Don't explicitly return #t from phases.
---
gnu/packages/compression.scm | 29 ++++++++++++++---------------
1 file changed, 14 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 778cf55a51..b78537b3a1 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -52,6 +52,7 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages compression)
+ #:use-module (guix gexp)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix utils)
#:use-module (guix packages)
@@ -990,21 +991,19 @@ byte-for-byte identical output.")
"01y7n7lafp6maqnp4jrmasawnv67najh1bd7gjrmv3d08h1ydjdl"))))
(build-system gnu-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (delete 'configure)
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (bin (string-append out "/bin"))
- (man (string-append out "/share/man/man1")))
- (install-file "pigz" bin)
- (symlink "pigz" (string-append bin "/unpigz"))
- (install-file "pigz.1" man)
- #t))))
- #:make-flags
- (list ,(string-append "CC=" (cc-for-target)))
- #:test-target "test"))
+ (list #:make-flags
+ #~(list (string-append "CC=" #$(cc-for-target)))
+ #:test-target "test"
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure)
+ (replace 'install
+ (lambda _
+ (let* ((bin (string-append #$output "/bin"))
+ (man (string-append #$output "/share/man/man1")))
+ (install-file "pigz" bin)
+ (symlink "pigz" (string-append bin "/unpigz"))
+ (install-file "pigz.1" man)))))))
(native-inputs (list which))
(inputs (list zlib))
(home-page "https://zlib.net/pigz/")
- branch master updated (b782d11f9b -> ad07af3538), guix-commits, 2022/05/21
- 02/07: gnu: pigz: Update to 2.7., guix-commits, 2022/05/21
- 01/07: gnu: pigz: Remove unused git input., guix-commits, 2022/05/21
- 03/07: gnu: pigz: Use G-expressions.,
guix-commits <=
- 06/07: gnu: libdeflate: Update to 1.10., guix-commits, 2022/05/21
- 07/07: gnu: diffoscope: Update to 213., guix-commits, 2022/05/21
- 04/07: gnu: libjcat: Update to 0.1.11., guix-commits, 2022/05/21
- 05/07: gnu: libdeflate: Omit static library., guix-commits, 2022/05/21