me
/
guix
Archived
1
0
Fork 0

gnu: hashcat: Fix cross-compilation.

* gnu/packages/password-utils.scm
(hashcat)[native-inputs]: Move to ...
(hashcat)[inputs]: ... here.
(hashcat)[arguments]<#:make-flags>: Set AR and CC.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
master
Maxime Devos 2022-09-03 14:08:27 +02:00 committed by Ludovic Courtès
parent aed1c2f794
commit 4bbad495a7
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 4 additions and 2 deletions

View File

@ -54,6 +54,7 @@
(define-module (gnu packages password-utils)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix utils)
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system go)
@ -1128,12 +1129,13 @@ your online accounts makes it necessary.")
;; TODO: Unbundle LZMA-SDK as well
#~(for-each delete-file-recursively
'("deps/zlib" "deps/xxHash" "deps/OpenCL-Headers")))))
(inputs (list minizip xxhash zlib))
(native-inputs (list opencl-headers))
(inputs (list minizip opencl-headers xxhash zlib))
(build-system gnu-build-system)
(arguments
(list #:tests? #f ;no tests
#:make-flags #~(list (string-append "PREFIX=" #$output)
(string-append "AR=" #$(ar-for-target))
(string-append "CC=" #$(cc-for-target))
(string-append "USE_SYSTEM_ZLIB=1")
(string-append "USE_SYSTEM_OPENCL=1")
(string-append "USE_SYSTEM_XXHASH=1"))