From 156f23bb1a75d7b39ca249b742faebeb727eab60 Mon Sep 17 00:00:00 2001 From: Ignacio Marmolejo Date: Sat, 20 Sep 2025 11:14:00 -0700 Subject: [PATCH] gnu: Add pass-update. * gnu/packages/password-utils.scm (pass-update): New variable. Change-Id: I2162701d93f4b10c720a9b17b8b1670159cbe5c2 Signed-off-by: Cayetano Santos --- gnu/packages/password-utils.scm | 41 +++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index 7b70c273651..5490c6c15d8 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -1061,6 +1061,47 @@ one-time-password (OTP) secrets, generating OTP codes, and displaying secret key URIs using the standard otpauth:// scheme.") (license license:gpl3+))) +(define-public pass-update + (package + (name "pass-update") + (version "2.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/roddhjav/pass-update") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1srg0zpgfj2rcsc8aynq7jy2wd9l2h21rpp73si6rwiccff4ymrl")))) + (build-system gnu-build-system) + (arguments + (list + #:test-target "tests" + #:make-flags + #~(list (string-append "PREFIX=" + #$output) + (string-append "BASHCOMPDIR=" + #$output "/share/bash-completion/completions")) + #:phases + #~(modify-phases %standard-phases + (delete 'build) + (add-before 'check 'setenv + (lambda _ + ;; Tests need the env var TMP + (mkdir "/tmp/pw") + (setenv "TMP" "/tmp/pw"))) + (delete 'configure)))) + (native-inputs (list password-store gnupg git)) + (home-page "https://github.com/roddhjav/pass-update") + (synopsis "Extension to @code{password-store} for updating passwords") + (description + "@code{pass-update} extends the pass utility with an update command +providing an easy flow for updating passwords. It supports path, directory +and wildcard update. Moreover, you can select how to update your passwords by +automatically generating new passwords or manually setting your own.") + (license license:gpl3))) + (define-public qtpass (package (name "qtpass")