diff options
author | Mark H Weaver <mhw@netris.org> | 2016-07-29 14:18:07 -0400 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2016-07-29 14:18:07 -0400 |
commit | 0bab3af0786ffd4caec05a29d7281ac5e5c18b6b (patch) | |
tree | d83fd52d0cb72b3a9c21642583d804c8c1865646 /gnu/packages/password-utils.scm | |
parent | 49d725a108dc33f4eb72faff7cf138c5dd8c64f4 (diff) | |
parent | 682a7d23385f709a680049a823bb84e45c922b3c (diff) | |
download | guix-0bab3af0786ffd4caec05a29d7281ac5e5c18b6b.tar.gz |
Merge branch 'master' into core-updates
Diffstat (limited to 'gnu/packages/password-utils.scm')
-rw-r--r-- | gnu/packages/password-utils.scm | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index a03214ae6d..7a8bdcb5f3 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -6,6 +6,7 @@ ;;; Copyright © 2016 Jessica Tallon <tsyesika@tsyesika.se> ;;; Copyright © 2016 Andreas Enge <andreas@enge.fr> ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org> +;;; Copyright © 2016 Alex Griffin <a@ajgrf.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -266,27 +267,26 @@ any X11 window.") '(#:phases (modify-phases %standard-phases (delete 'configure) - (add-after - ;; The script requires 'getopt' at run-time, and this allows - ;; the user to not install the providing package 'util-linux' - ;; in their profile. - 'unpack 'patch-path - (lambda* (#:key inputs outputs #:allow-other-keys) - (let ((getopt (string-append (assoc-ref inputs "getopt") - "/bin/getopt"))) - (substitute* "src/password-store.sh" - (("GETOPT=\"getopt\"") - (string-append "GETOPT=\"" getopt "\""))) - #t)))) + (add-after 'install 'wrap-path + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (path (map (lambda (pkg) + (string-append (assoc-ref inputs pkg) "/bin")) + '("coreutils" "getopt" "git" "gnupg" "pwgen" + "sed" "tree" "which" "xclip")))) + (wrap-program (string-append out "/bin/pass") + `("PATH" ":" prefix (,(string-join path ":")))))))) #:make-flags (list "CC=gcc" (string-append "PREFIX=" %output)) #:test-target "test")) - (native-inputs `(("getopt" ,util-linux))) ; getopt for the tests - (inputs `(("gnupg" ,gnupg) - ("pwgen" ,pwgen) - ("xclip" ,xclip) - ("git" ,git) - ("tree" ,tree) - ("which" ,which))) + (inputs + `(("getopt" ,util-linux) + ("git" ,git) + ("gnupg" ,gnupg) + ("pwgen" ,pwgen) + ("sed" ,sed) + ("tree" ,tree) + ("which" ,which) + ("xclip" ,xclip))) (home-page "http://www.passwordstore.org/") (synopsis "Encrypted password manager") (description "Password-store is a password manager which uses GnuPG to |