guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] gnu: password-store: Wrap PATH.


From: Mathieu Lirzin
Subject: Re: [PATCH] gnu: password-store: Wrap PATH.
Date: Fri, 29 Jul 2016 11:07:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Hello,

Alex Griffin <address@hidden> writes:

> On Thu, Jul 28, 2016, at 07:20 PM, Alex Griffin wrote:
>
> From 74b838fea52293386169299881cdd7cfefff7f4d Mon Sep 17 00:00:00 2001
> From: Alex Griffin <address@hidden>
> Date: Thu, 28 Jul 2016 19:06:10 -0500
> Subject: [PATCH] gnu: password-store: Wrap PATH.
>
> * gnu/packages/password-utils.scm (password-store):
> [arguments]: Wrap PATH more thoroughly.
> [native-inputs]: Move getopt to inputs.
> [inputs]: Add sed & alphabetize packages.
                      ^^
Indentation and formatting changes can be omitted in commit log.

> ---
>  gnu/packages/password-utils.scm | 33 ++++++++++++++++-----------------
>  1 file changed, 16 insertions(+), 17 deletions(-)
>
> diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
> index a03214a..497717f 100644
> --- a/gnu/packages/password-utils.scm
> +++ b/gnu/packages/password-utils.scm
> @@ -6,6 +6,7 @@
>  ;;; Copyright © 2016 Jessica Tallon <address@hidden>
>  ;;; Copyright © 2016 Andreas Enge <address@hidden>
>  ;;; Copyright © 2016 Lukas Gradl <address@hidden>
> +;;; Copyright © 2016 Alex Griffin <address@hidden>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -266,27 +267,25 @@ 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 ":"))))))))

'let*' can safely be replaced by 'let' here.

>         #: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)
> +    (inputs `(("getopt" ,util-linux)
>                ("git" ,git)
> +              ("gnupg" ,gnupg)
> +              ("pwgen" ,pwgen)
> +              ("sed" ,sed)
>                ("tree" ,tree)
> -              ("which" ,which)))
> +              ("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

Pushed in commit 61201e46a72b715e1a38ce56932c3f4f2d3885b4.

Thanks.

-- 
Mathieu Lirzin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]