From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH] gnu: Add pass. Date: Wed, 2 Mar 2016 03:39:14 -0500 Message-ID: <20160302083914.GA10500@jasmine> References: <87lh6u6dnj.fsf@tsyesika.se> <20160209225551.GA20330@debian> <20160217181344.GB31074@solar> <20160228083950.GA16555@solar> <87bn7050na.fsf@tsyesika.se> <20160302083040.GA3637@jasmine> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="YZ5djTAD1cGYuMQK" Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab2JR-0002T6-33 for guix-devel@gnu.org; Wed, 02 Mar 2016 03:39:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ab2JN-00041d-Qo for guix-devel@gnu.org; Wed, 02 Mar 2016 03:39:17 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:52575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab2JN-00041X-Lk for guix-devel@gnu.org; Wed, 02 Mar 2016 03:39:13 -0500 Content-Disposition: inline In-Reply-To: <20160302083040.GA3637@jasmine> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Jessica Tallon Cc: Guix-devel --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Mar 02, 2016 at 03:30:40AM -0500, Leo Famulari wrote: > On Sun, Feb 28, 2016 at 04:12:57PM +0100, Jessica Tallon wrote: > > I've attached the package so if someone would like to continue, please > > do so, I won't be. Thanks for your work and suggestions those who've > > helped me get this far with packaging it :) I've learnt a lot about it. > > I added a wrapper which provides getopt (as well as the rest of > 'util-linux/bin') to the script at run-time. Is there a way to only > provide the single executable 'getopt'? > > Either way, I think it's a better solution than propagating util-linux, > since the wrapper keeps util-linux out of the user's profile. I realized the script offers a "GETOPT" variable, so this patch uses that instead. I think this is the best solution. > > What do people think? --YZ5djTAD1cGYuMQK Content-Type: text/x-diff; charset=iso-8859-1 Content-Disposition: attachment; filename="0001-gnu-Add-password-store.patch" Content-Transfer-Encoding: 8bit >From 57db34189830c07ed339037de2820705925f418b Mon Sep 17 00:00:00 2001 Message-Id: <57db34189830c07ed339037de2820705925f418b.1456907900.git.leo@famulari.name> From: Jessica Tallon Date: Mon, 8 Feb 2016 22:12:50 +0100 Subject: [PATCH 1/1] gnu: Add password-store. * gnu/packages/password-utils.scm (password-store): New variable. Co-authored-by: Andreas Enge Co-authored-by: Leo Famulari --- gnu/packages/password-utils.scm | 52 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index 7c128a3..cddc655 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -3,6 +3,8 @@ ;;; Copyright © 2015, 2016 Efraim Flashner ;;; Copyright © 2015 Aljosha Papsch ;;; Copyright © 2016 Christopher Allan Webber +;;; Copyright © 2016 Jessica Tallon +;;; Copyright © 2016 Andreas Enge ;;; ;;; This file is part of GNU Guix. ;;; @@ -25,16 +27,20 @@ #:use-module (guix build-system gnu) #:use-module (guix download) #:use-module (guix packages) + #:use-module (gnu packages admin) + #:use-module (gnu packages base) #:use-module (gnu packages compression) #:use-module (gnu packages gnupg) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) + #:use-module (gnu packages linux) #:use-module (gnu packages man) #:use-module (gnu packages ncurses) #:use-module (gnu packages pkg-config) #: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 +247,49 @@ 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 password-store + (package + (name "password-store") + (version "1.6.5") + (source (origin + (method url-fetch) + (uri + (string-append "https://git.zx2c4.com/password-store/snapshot/" + name "-" version ".tar.xz")) + (sha256 + (base32 + "05bk3lrp5jwg0v338lvylp7glpliydzz4jf5pjr6k3kagrv3jyik")))) + (build-system gnu-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after + ;; The script requires 'getopt' at run-time. + 'unpack 'patch-path + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((getopt (string-append (assoc-ref inputs "getopt") + "/bin/getopt"))) + (substitute* "src/password-store.sh" + (("GETOPT=\"getopt\"") + (string-append "GETOPT=\"" getopt "\""))) + #t)))) + #:make-flags (list "CC=gcc" (string-append "PREFIX=" %output)) + #:test-target "test")) + (native-inputs `(("getopt" ,util-linux))) ; getopt for the tests + (inputs `(("gnupg" ,gnupg) + ("pwgen" ,pwgen) + ("xclip" ,xclip) + ("git" ,git) + ("tree" ,tree) + ("which" ,which))) + (home-page "http://www.passwordstore.org/") + (synopsis "Encrypted password manager") + (description "Password-store is a password manager which uses GnuPG to +store and retrieve passwords. The tool stores each password in its own +GnuPG-encrypted file, allowing the program to be simple yet secure. +Synchronization is possible using the integrated 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.7.1 --YZ5djTAD1cGYuMQK--