summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMaxime Devos <maximedevos@telenet.be>2022-09-03 14:08:27 +0200
committerLudovic Courtès <ludo@gnu.org>2022-09-04 23:10:13 +0200
commit4bbad495a799c99499fa0d3aa87e4915f6ccaf7d (patch)
tree68496b4412dbf7b054d49d31ece1223b34b4f8ba /gnu
parentaed1c2f794bb15c6b9058783fc60a19a69972b6f (diff)
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>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/password-utils.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 343ec07ad5..003e346305 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -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"))