gnu: hashcat: Rewrite with G-exps.

This is required for cross-compilation, as %output does not exist when
cross-compiling.

* gnu/packages/password-utils.scm (hashcat)[arguments]: Rewrite with G-exps.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Maxime Devos 2022-09-03 14:08:26 +02:00 committed by Ludovic Courtès
parent 99afc7d65b
commit aed1c2f794
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1132,20 +1132,18 @@ (define-public hashcat
(native-inputs (list opencl-headers))
(build-system gnu-build-system)
(arguments
'(#:tests? #f ;no tests
#: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.
(add-after 'unpack 'fix-reproducibility
(lambda _
(substitute* "src/Makefile"
(("\\$\\(shell date \\+%s\\)") "0"))))
(delete 'configure))))
(list #:tests? #f ;no tests
#:make-flags #~(list (string-append "PREFIX=" #$output)
(string-append "USE_SYSTEM_ZLIB=1")
(string-append "USE_SYSTEM_OPENCL=1")
(string-append "USE_SYSTEM_XXHASH=1"))
#:phases #~(modify-phases %standard-phases
(add-after 'unpack 'fix-reproducibility
(lambda _
(substitute* "src/Makefile"
(("\\$\\(shell date \\+%s\\)")
"0"))))
(delete 'configure))))
(home-page "https://hashcat.net/hashcat/")
(synopsis "Advanced password recovery utility")
(description