unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add pass.
@ 2015-08-23  2:51 Steve Sprang
  2015-08-27 21:11 ` Ludovic Courtès
  0 siblings, 1 reply; 16+ messages in thread
From: Steve Sprang @ 2015-08-23  2:51 UTC (permalink / raw)
  To: guix-devel


[-- 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


^ permalink raw reply related	[flat|nested] 16+ messages in thread
* [PATCH] gnu: Add pass.
@ 2016-02-08 22:27 Jessica Tallon
  2016-02-09 21:33 ` Leo Famulari
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Jessica Tallon @ 2016-02-08 22:27 UTC (permalink / raw)
  To: Guix-devel

[-- Attachment #1: Type: text/plain, Size: 73 bytes --]

Hello,

I've finally got around to packaging the pass password manager.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-pass.patch --]
[-- Type: text/x-patch, Size: 2822 bytes --]

From 86ab2ad8f47cb72780cf0140352a9a5c26af36f8 Mon Sep 17 00:00:00 2001
From: Jessica Tallon <tsyesika@tsyesika.se>
Date: Mon, 8 Feb 2016 22:12:50 +0100
Subject: [PATCH] gnu: Add pass.

* gnu/packages/password-utils.scm (pass): New variable.
---
 gnu/packages/password-utils.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 7c128a3..3a8cefa 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -25,6 +25,7 @@
   #:use-module (guix build-system gnu)
   #:use-module (guix download)
   #:use-module (guix packages)
+  #:use-module (gnu packages admin)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages gnupg)
   #:use-module (gnu packages gtk)
@@ -35,6 +36,7 @@
   #:use-module (gnu packages python)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages qt)
+  #:use-module (gnu packages version-control)
   #:use-module (gnu packages xdisorg)
   #:use-module (gnu packages xorg)
   #:use-module (guix build-system python))
@@ -241,3 +243,39 @@ JSON files.  It has a command line interface as well as a very simple
 graphical interface, which can even \"type\" your passwords into
 any X11 window.")
     (license license:gpl3+)))
+
+(define-public pass
+  (package
+    (name "pass")
+    (version "1.6.5")
+    (source (origin
+              (method url-fetch)
+              (uri
+               (string-append "https://git.zx2c4.com/password-store/snapshot/"
+                              "password-store-" version ".tar.xz"))
+              (sha256
+               (base32
+                "05bk3lrp5jwg0v338lvylp7glpliydzz4jf5pjr6k3kagrv3jyik"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:phases
+       (alist-delete 'configure %standard-phases)
+       #:make-flags (list "CC=gcc" (string-append "PREFIX=" %output))
+       ;; The tests mysteriously hang, I've tired it outside of guix and
+       ;; they run perfectly fine. Not sure why so for now I've disabled
+       ;; them.
+       #:tests? #f
+       #:test-target "test"))
+    (inputs `(("gnupg" ,gnupg)
+              ("pwgen" ,pwgen)
+              ("xclip" ,xclip)
+              ("git" ,git)
+              ("tree" ,tree)))
+    (home-page "http://www.passwordstore.org/")
+    (synopsis "Encrypted password manager")
+    (description "Pass is a password manager which uses gnupg to store, retrieve
+generated passwords.  The tool stores each password in its own file gpg
+encrypted allowing the program to be simple yet secure.  Synchronization is
+possible with inbuild git support which commits changes to your password database
+to a git repository that can be managed through the pass command.")
+    (license license:gpl2+)))
-- 
2.6.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-08-03 12:23 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-23  2:51 [PATCH] gnu: Add pass Steve Sprang
2015-08-27 21:11 ` 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

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).