~ruther/guix-local

bea4bc442b21c96ca8067cfda5eaffdfdd4b0de9 — Cayetano Santos 8 months ago ef48386
gnu: shroud: Improve style.

* gnu/packages/password-utils.scm (shroud)[arguments]: Use
G-Expressions.

Change-Id: I57519d4b5537dd3a9379c2c42624960610469c53
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
1 files changed, 32 insertions(+), 28 deletions(-)

M gnu/packages/password-utils.scm
M gnu/packages/password-utils.scm => gnu/packages/password-utils.scm +32 -28
@@ 589,37 589,41 @@ client, supporting @acronym{TOTP, Time-based one time passwords} and
  (package
    (name "shroud")
    (version "0.1.2")
    (source (origin
              (method url-fetch)
              (uri (string-append "https://files.dthompson.us/shroud/shroud-"
                                  version ".tar.gz"))
              (sha256
               (base32
                "1l2shrhvcwfzkar9qiwb75nhcqmx25iz55lzmz0c187nbjhqzi9p"))))
    (source
     (origin
       (method url-fetch)
       (uri (string-append "https://files.dthompson.us/shroud/shroud-"
                           version ".tar.gz"))
       (sha256
        (base32
         "1l2shrhvcwfzkar9qiwb75nhcqmx25iz55lzmz0c187nbjhqzi9p"))))
    (build-system gnu-build-system)
    (arguments
     (list
      #:modules '((guix build gnu-build-system)
                  (guix build utils)
                  (ice-9 popen)
                  (ice-9 rdelim))
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'install 'wrap-shroud
            (lambda _
              (let* ((effective
                      (read-line
                       (open-pipe*
                        OPEN_READ
                        (string-append #$(this-package-input "guile")
                                       "/bin/guile")
                        "-c" "(display (effective-version))")))
                     (ccachedir (string-append #$output
                                               "/lib/guile/" effective
                                               "/site-ccache")))
                (wrap-program (string-append #$output "/bin/shroud")
                  `("GUILE_LOAD_COMPILED_PATH" ":" prefix (,ccachedir)))))))))
    (inputs
     (list bash-minimal guile-2.2 gnupg xclip))
    (native-inputs
     (list pkg-config))
    (arguments
     `(#:modules ((guix build gnu-build-system)
                    (guix build utils)
                    (ice-9 popen)
                    (ice-9 rdelim))
       #:phases
       (modify-phases %standard-phases
         (add-after 'install 'wrap-shroud
           (lambda* (#:key inputs outputs #:allow-other-keys)
             (let* ((out       (assoc-ref outputs "out"))
                    (guile (assoc-ref inputs "guile"))
                    (effective (read-line
                                (open-pipe* OPEN_READ
                                            (string-append guile "/bin/guile")
                                            "-c" "(display (effective-version))")))
                    (ccachedir (string-append out
                                             "/lib/guile/" effective "/site-ccache"))
                    (prog      (string-append out "/bin/shroud")))
               (wrap-program prog
                 `("GUILE_LOAD_COMPILED_PATH" ":" prefix (,ccachedir)))))))))
    (inputs (list bash-minimal guile-2.2 gnupg xclip))
    (synopsis "GnuPG-based secret manager")
    (description "Shroud is a simple secret manager with a command line
interface.  The password database is stored as a Scheme s-expression and