Skip to content

Commit

Permalink
Add c-blosc2 package variant for Guix with AVX2 enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ivilata authored and FrancescAlted committed Oct 30, 2023
1 parent f79964a commit e11231b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .guix/modules/c-blosc2-package.scm
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,19 @@ format-compatible with C-Blosc1 (i.e. forward compatibility is not
supported).")
(license license:bsd-3)))

(define (package-with-configure-flags p flags)
"Return P with FLAGS as additional 'configure' flags."
(package/inherit p
(arguments (substitute-keyword-arguments (package-arguments p)
((#:configure-flags original-flags
#~(list))
#~(append #$original-flags
#$flags))))))

(define-public c-blosc2-with-avx2
(package
(inherit (package-with-configure-flags c-blosc2
#~(list "-DDEACTIVATE_AVX2=OFF")))
(name "c-blosc2-with-avx2")))

c-blosc2

0 comments on commit e11231b

Please sign in to comment.