;;; Shroud ;;; Copyright © 2015 David Thompson ;;; ;;; Shroud is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or ;;; (at your option) any later version. ;;; ;;; Shroud is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;;; General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with Shroud. If not, see . ;;; Commentary: ;; ;; Development environment for GNU Guix. ;; ;;; Code: (use-modules (guix packages) (guix licenses) (guix build-system gnu) (guix build utils) (gnu)) (use-package-modules autotools pkg-config guile gnupg xdisorg) (define %source-dir (dirname (current-filename))) (package (name "shroud") (version "git") (source %source-dir) (build-system gnu-build-system) (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))) #t)))))) (native-inputs `(("pkg-config" ,pkg-config) ("autoconf" ,autoconf) ("automake" ,automake))) (inputs `(("guile" ,guile-2.0) ("gnupg" ,gnupg) ("xclip" ,xclip))) (synopsis "Simple password manager") (description "Shroud is a simple password manager with a command-line interface. The password database is stored as a Scheme s-expression and encrypted with a GPG key.") (home-page "http://dthompson.us/pages/software/shroud.html") (license gpl3+))