@@ -1110,6 +1110,8 @@ (define-public pass-rotate
your online accounts makes it necessary.")
(license license:expat)))
+;; XXX: move this import upwards before merging this patch
+(use-modules (gnu packages digest))
(define-public hashcat
(package
(name "hashcat")
@@ -1121,13 +1123,25 @@ (define-public hashcat
version ".tar.gz"))
(sha256
(base32
- "104z63m7lqbb0sdrxhf9yi15l4a9zwf9m6zs9dbb3gf0nfxl1h9r"))))
+ "104z63m7lqbb0sdrxhf9yi15l4a9zwf9m6zs9dbb3gf0nfxl1h9r"))
+ (modules '((guix build utils)))
+ ;; Delete bundled libraries.
+ (snippet
+ ;; TODO: Unbundle LZMA-SDK as well
+ #~(for-each delete-file-recursively
+ '("deps/zlib" "deps/xxHash" "deps/OpenCL-Headers")))))
(native-inputs
(list opencl-headers))
+ (inputs (list minizip xxhash zlib))
(build-system gnu-build-system)
(arguments
'(#:tests? #f ;no tests
- #:make-flags (list (string-append "PREFIX=" %output))
+ #:make-flags (list (string-append "PREFIX=" %output)
+ ;; TODO: unbundle
+ ;; (string-append "USE_SYSTEM_LZMA=1")
+ (string-append "USE_SYSTEM_ZLIB=1")
+ (string-append "USE_SYSTEM_OPENCL=1")
+ (string-append "USE_SYSTEM_XXHASH=1"))
#:phases
(modify-phases %standard-phases
;; Don't embed timestamps, for bit-for-bit reproducibility.