From 751167feff404c81dfbfb5e447b854a5dbc44c89 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Tue, 7 Jun 2022 12:07:42 +0200 Subject: [PATCH 1/2] gnu: hcxtools: Use gexps. * gnu/packages/networking.scm (hcxtools)[arguments]: Link libraries and use PREFIX instead of INSTALL_DIR. [phases]: Use gexps. diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index bfa956149d..5b82516812 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -3232,16 +3232,20 @@ (define-public hcxtools (base32 "0k2qlq9hz5zc21nyc6yrnfqzga7hydn5mm0x3rpl2fhkwl81lxcn")) (file-name (git-file-name name version)))) (build-system gnu-build-system) - (inputs - (list curl libpcap openssl zlib)) + (native-inputs (list pkg-config)) + (inputs (list curl libpcap openssl zlib)) (arguments - `(#:make-flags - (list ,(string-append "CC=" (cc-for-target)) - (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin")) - #:tests? #f ; no test suite - #:phases - (modify-phases %standard-phases - (delete 'configure)))) + (list #:make-flags + #~(list (string-append "CC=" + #$(cc-for-target)) "LDFLAGS+=-lcrypto" + "LDFLAGS+=-lcurl" "LDFLAGS+=-lz" + (string-append "PREFIX=" + #$output)) + #:tests? + #f ;no test suite + #:phases + #~(modify-phases %standard-phases + (delete 'configure)))) (home-page "https://github.com/ZerBea/hcxtools") (synopsis "Capture wlan traffic to hashcat and John the Ripper") (description -- 2.35.1