~ruther/guix-local

eb893dbdd5ceae1e51c8b611e122e717f974a5c4 — Jean-Baptiste Note 6 months ago 1aa6da5
gnu: hashcat: Remove nonfree unrar bundled dependency.

Fixes: guix/guix#2784.

* gnu/packages/password-utils.scm (hashcat)[source]: Remove "deps/unrar"
from compiled directories.
[arguments]<#:make-flags>: Add "ENABLE_UNRAR=0".

Signed-off-by: Andreas Enge <andreas@enge.fr>
1 files changed, 3 insertions(+), 1 deletions(-)

M gnu/packages/password-utils.scm
M gnu/packages/password-utils.scm => gnu/packages/password-utils.scm +3 -1
@@ 1684,7 1684,8 @@ your online accounts makes it necessary.")
              (snippet
               ;; TODO: Unbundle LZMA-SDK as well
               #~(for-each delete-file-recursively
                           '("deps/zlib" "deps/xxHash" "deps/OpenCL-Headers")))))
                           '("deps/unrar" ;; nonfree license
                             "deps/zlib" "deps/xxHash" "deps/OpenCL-Headers")))))
    (inputs (list minizip opencl-headers xxhash zlib))
    (build-system gnu-build-system)
    (arguments


@@ 1692,6 1693,7 @@ your online accounts makes it necessary.")
           #:make-flags #~(list (string-append "PREFIX=" #$output)
                                (string-append "AR=" #$(ar-for-target))
                                (string-append "CC=" #$(cc-for-target))
                                (string-append "ENABLE_UNRAR=0")
                                (string-append "USE_SYSTEM_ZLIB=1")
                                (string-append "USE_SYSTEM_OPENCL=1")
                                (string-append "USE_SYSTEM_XXHASH=1"))