From 3c48ef60ad8fa76075e0fc72bd0dba7f09366915 Mon Sep 17 00:00:00 2001 From: Maxime Devos Date: Sat, 3 Sep 2022 14:08:24 +0200 Subject: gnu: hashcat: Don't embed timestamp, fixing reproducibility. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/password-utils.scm (hashcat)[arguments]{#:phases}: Remove timestamp, fixing reproducibility. Signed-off-by: Ludovic Courtès --- gnu/packages/password-utils.scm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gnu/packages/password-utils.scm') diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index e8c3feaeba..1228c42297 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -35,6 +35,7 @@ ;;; Copyright © 2020 Hartmut Goebel ;;; Copyright © 2021 David Dashyan ;;; Copyright © 2022 Maxim Cournoyer +;;; Copyright © 2022 Maxime Devos ;;; ;;; This file is part of GNU Guix. ;;; @@ -1126,6 +1127,11 @@ (define-public hashcat '(#:tests? #f ;no tests #:make-flags (list (string-append "PREFIX=" %output)) #: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)))) (home-page "https://hashcat.net/hashcat/") (synopsis "Advanced password recovery utility") -- cgit v1.2.3