summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-11-17 16:12:28 +0000
committerRicardo Wurmus <rekado@elephly.net>2021-11-17 20:45:54 +0000
commit7850856591e91850237e163ba9d39509ced718ed (patch)
treec4a9c7316edeb1b779fe5d7af134c5ff860ec26b
parent41c8ee1b50ef096683d1542008de28e1b7e14891 (diff)
downloadguix-7850856591e91850237e163ba9d39509ced718ed.tar.gz
gnu: c-blosc: Build with external libraries and without AVX2.
* gnu/packages/compression.scm (c-blosc)[inputs]: Add lz4, snappy, zlib, and
zstd.
[arguments]: Disable building with AVX2 instructions; prefer our compression
packages over bundled sources.
-rw-r--r--gnu/packages/compression.scm12
1 files changed, 12 insertions, 0 deletions
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 3098230bd5..0a993d1550 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -2621,6 +2621,18 @@ chunks.")
                (base32
                 "1ywq8j70149859vvs19wgjq89d6xsvvmvm2n1dmkzpchxgrvnw70"))))
     (build-system cmake-build-system)
+    (arguments
+     `(#:configure-flags
+       '("-DDEACTIVATE_AVX2=ON"
+         "-DPREFER_EXTERNAL_LZ4=ON"
+         "-DPREFER_EXTERNAL_SNAPPY=ON"
+         "-DPREFER_EXTERNAL_ZLIB=ON"
+         "-DPREFER_EXTERNAL_ZSTD=ON")))
+    (inputs
+     `(("lz4" ,lz4)
+       ("snappy" ,snappy)
+       ("zlib" ,zlib)
+       ("zstd:lib" ,zstd "lib")))
     (home-page "https://blosc.org")
     (synopsis "Blocking, shuffling and lossless compression library")
     (description