guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: Add pass-git-helper.


From: Arun Isaac
Subject: 01/01: gnu: Add pass-git-helper.
Date: Sun, 25 Jun 2017 16:44:39 -0400 (EDT)

arunisaac pushed a commit to branch master
in repository guix.

commit a1714ff5c7be5b39e1989fa8160b214c086c60d7
Author: Jelle Licht <address@hidden>
Date:   Sun Jun 25 14:38:40 2017 +0200

    gnu: Add pass-git-helper.
    
    * gnu/packages/password-utils.scm (pass-git-helper): New variable.
    
    Signed-off-by: Arun Isaac <address@hidden>
---
 gnu/packages/password-utils.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 9cfacdb..08591d1 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -10,6 +10,7 @@
 ;;; Copyright © 2017 Leo Famulari <address@hidden>
 ;;; Copyright © 2017 Clément Lassieur <address@hidden>
 ;;; Copyright © 2017 Tobias Geerinckx-Rice <address@hidden>
+;;; Copyright © 2017 Jelle Licht <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -37,6 +38,7 @@
   #:use-module (gnu packages aidc)
   #:use-module (gnu packages base)
   #:use-module (gnu packages compression)
+  #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnupg)
   #:use-module (gnu packages gtk)
@@ -410,3 +412,37 @@ Password Scheme\"} by Niels Provos and David Mazieres.")
 
 (define-public python2-bcrypt
   (package-with-python2 python-bcrypt))
+
+(define-public pass-git-helper
+  (package
+    (name "pass-git-helper")
+    (version "0.3.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append 
"https://github.com/languitar/pass-git-helper/archive/release-";
+                           version ".tar.gz"))
+       (sha256
+        (base32
+         "0lz5ncy44pz7z1j2nnyildx8sq33zi3xvg5nkwg25n11nasqh2xn"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'patch-pass-path
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let* ((password-store (assoc-ref inputs "password-store"))
+                    (pass (string-append password-store "/bin/pass")))
+               (substitute* "pass-git-helper"
+                 (("'pass'") (string-append "'" pass "'")))
+               #t))))))
+    (inputs
+     `(("python-pyxdg" ,python-pyxdg)
+       ("password-store" ,password-store)))
+    (home-page "https://github.com/languitar/pass-git-helper";)
+    (synopsis "Git credential helper interfacing with pass")
+    (description "pass-git-helper is a git credential helper which allows to
+use pass, the standard unix password manager, as the credential backend for
+your git repositories.  This is achieved by explicitly defining mappings
+between hosts and entries in the password store.")
+    (license license:lgpl3+)))



reply via email to

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