unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Steve Sprang <steve.sprang@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: Add pass.
Date: Sat, 22 Aug 2015 19:51:35 -0700	[thread overview]
Message-ID: <CA+xn8YAoOuMcg0eV4rwRhi1JHaC5KwRbQOZJ0buNWhftGWK-Uw@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 97 bytes --]

I'm not sure if there's a good way to enable tests here, so they are
currently disabled.

-Steve

[-- Attachment #1.2: Type: text/html, Size: 147 bytes --]

[-- Attachment #2: add_pass.patch --]
[-- Type: text/x-patch, Size: 2850 bytes --]

From adef360ea4ec41aa23ec7aef43341c12bf27ca3c Mon Sep 17 00:00:00 2001
From: Steve Sprang <scs@stevesprang.com>
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


             reply	other threads:[~2015-08-23  2:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-23  2:51 Steve Sprang [this message]
2015-08-27 21:11 ` [PATCH] gnu: Add pass Ludovic Courtès
  -- strict thread matches above, loose matches on Subject: below --
2016-02-08 22:27 Jessica Tallon
2016-02-09 21:33 ` Leo Famulari
2016-02-09 21:36 ` Ludovic Courtès
2016-02-09 22:55 ` Andreas Enge
2016-02-17 18:13   ` Andreas Enge
2016-02-28  8:39     ` Andreas Enge
2016-02-28 15:12       ` Jessica Tallon
2016-03-02  8:30         ` Leo Famulari
2016-03-02  8:39           ` Leo Famulari
2016-03-02  9:13             ` Ludovic Courtès
2016-03-02 19:19               ` Leo Famulari
2016-08-01 15:24     ` ng0
2016-08-03  1:17       ` Leo Famulari
2016-08-03 12:23         ` ng0

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+xn8YAoOuMcg0eV4rwRhi1JHaC5KwRbQOZJ0buNWhftGWK-Uw@mail.gmail.com \
    --to=steve.sprang@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).