[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/15: gnu: xxhash: Use G-expressions.
From: |
guix-commits |
Subject: |
07/15: gnu: xxhash: Use G-expressions. |
Date: |
Wed, 5 Jan 2022 23:23:50 -0500 (EST) |
nckx pushed a commit to branch master
in repository guix.
commit f9fe99b4cd65bba023fca109c9f2f63828f00e48
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Thu Jan 6 01:52:43 2022 +0100
gnu: xxhash: Use G-expressions.
* gnu/packages/digest.scm (xxhash)[arguments]:
Rewrite as G-expressions.
---
gnu/packages/digest.scm | 37 +++++++++++++++++++------------------
1 file changed, 19 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/digest.scm b/gnu/packages/digest.scm
index 309a94d3e8..4211848fdb 100644
--- a/gnu/packages/digest.scm
+++ b/gnu/packages/digest.scm
@@ -19,6 +19,7 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages digest)
+ #:use-module (guix gexp)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
@@ -79,24 +80,24 @@ Zig, V, and Nim programming language standard libraries.")
(base32 "1h6080lvcr5mpbvy4fhb4i7wvhpy72nrixk3djmpai4hxq41hsnr"))))
(build-system gnu-build-system)
(arguments
- `(#:make-flags
- (list ,(string-append "CC=" (cc-for-target))
- ,(match (or (%current-target-system)
- (%current-system))
- ;; Detect vector instruction set at run time.
- ((or "i686-linux" "x86_64-linux") "DISPATCH=1")
- (_ "DISPATCH=0"))
- "XXH_FORCE_MEMORY_ACCESS=1" ; improved performance with GCC
- (string-append "prefix=" (assoc-ref %outputs "out")))
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'fix-man-page-links
- ;; https://github.com/Cyan4973/xxHash/issues/647
- (lambda _
- (substitute* "Makefile"
- (("ln -sf \\$\\(MAN\\)")
- "ln -sf xxhsum.1"))))
- (delete 'configure)))) ; no configure script
+ (list #:make-flags
+ #~(list #$(string-append "CC=" (cc-for-target))
+ #$(match (or (%current-target-system)
+ (%current-system))
+ ;; Detect vector instruction set at run time.
+ ((or "i686-linux" "x86_64-linux") "DISPATCH=1")
+ (_ "DISPATCH=0"))
+ "XXH_FORCE_MEMORY_ACCESS=1" ; improved performance with GCC
+ (string-append "prefix=" (assoc-ref %outputs "out")))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-man-page-links
+ ;; https://github.com/Cyan4973/xxHash/issues/647
+ (lambda _
+ (substitute* "Makefile"
+ (("ln -sf \\$\\(MAN\\)")
+ "ln -sf xxhsum.1"))))
+ (delete 'configure)))) ; no configure script
(home-page "https://cyan4973.github.io/xxHash/")
(synopsis "Extremely fast hash algorithm")
(description
- 05/15: gnu: toybox: Use G-expressions., (continued)
- 05/15: gnu: toybox: Use G-expressions., guix-commits, 2022/01/05
- 03/15: gnu: vice: Update to 3.6., guix-commits, 2022/01/05
- 09/15: gnu: pan: Use G-expressions., guix-commits, 2022/01/05
- 10/15: gnu: borgmatic: Update to 1.5.22., guix-commits, 2022/01/05
- 11/15: gnu: borgmatic: Use G-expressions., guix-commits, 2022/01/05
- 13/15: gnu: snapraid: Use G-expressions., guix-commits, 2022/01/05
- 04/15: gnu: toybox: Update to 0.8.6., guix-commits, 2022/01/05
- 02/15: gnu: xchm: Update to 1.33., guix-commits, 2022/01/05
- 08/15: gnu: pan: Update to 0.149., guix-commits, 2022/01/05
- 06/15: gnu: xxhash: Update to 0.8.1., guix-commits, 2022/01/05
- 07/15: gnu: xxhash: Use G-expressions.,
guix-commits <=
- 12/15: gnu: wimlib: Update to 1.13.5., guix-commits, 2022/01/05
- 15/15: gnu: snapraid: Update to 12.0., guix-commits, 2022/01/05
- 14/15: gnu: snapraid: ‘Fix’ build., guix-commits, 2022/01/05