From adef360ea4ec41aa23ec7aef43341c12bf27ca3c Mon Sep 17 00:00:00 2001 From: Steve Sprang Date: Sat, 22 Aug 2015 19:49:21 -0700 Subject: [PATCH] gnu: Add pass. * gnu/packages/password-utils.scm (pass): New variable. --- gnu/packages/password-utils.scm | 53 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index 4aef371..0beddaf 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -20,7 +20,12 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix build-system gnu) #:use-module (guix download) - #:use-module (guix packages)) + #:use-module (guix packages) + #:use-module (gnu packages) + #:use-module (gnu packages admin) + #:use-module (gnu packages gnupg) + #:use-module (gnu packages version-control) + #:use-module (gnu packages xdisorg)) (define-public pwgen (package @@ -41,3 +46,49 @@ (description "Pwgen generates passwords which can be easily memorized by a human.") (license license:gpl2))) + +(define-public pass + (package + (name "pass") + (version "1.6.5") + (source + (origin + (method url-fetch) + (uri (string-append + "http://git.zx2c4.com/password-store/snapshot/" + "password-store-" version ".tar.xz")) + (sha256 + (base32 "05bk3lrp5jwg0v338lvylp7glpliydzz4jf5pjr6k3kagrv3jyik")))) + (build-system gnu-build-system) + (inputs `(("git" ,git) + ("gnupg" ,gnupg) + ("pwgen" ,pwgen) + ("tree" ,tree) + ("xclip" ,xclip))) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'build) ; pass is implemented as a shell script + (add-after + 'install 'set-path + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (input->path (lambda (input) + (string-append + (assoc-ref inputs (car input)) + "/bin")))) + ;; pass executes its inputs as helper programs at runtime + (wrap-program (string-append out "/bin/pass") + `("PATH" ":" prefix ,(map input->path inputs))))))) + #:make-flags + (list (string-append "PREFIX=" %output) + "FORCE_ALL=1") ; bash-completion + #:test-target "test" + #:tests? #f)) ; tests hang + (home-page "http://www.passwordstore.org/") + (synopsis "Simple password manager") + (description "Pass is a simple password manager which uses GnuPG and +ordinary directories.") + (license license:gpl2+))) + -- 2.4.3