From patchwork Tue Oct 11 21:39:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 43339 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 59DD427BBE9; Tue, 11 Oct 2022 22:57:59 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C7E8917031 for ; Tue, 11 Oct 2022 22:57:58 +0100 (BST) Received: from localhost ([::1]:33892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiNG9-0004KG-O4 for patchwork@mira.cbaines.net; Tue, 11 Oct 2022 17:57:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiMyo-0007nu-BJ for guix-patches@gnu.org; Tue, 11 Oct 2022 17:40:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55957) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiMyo-0000bf-2V for guix-patches@gnu.org; Tue, 11 Oct 2022 17:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oiMyn-0005tk-R6 for guix-patches@gnu.org; Tue, 11 Oct 2022 17:40:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58386] [PATCH v2] gnu: Add passage. References: <87h70edjjs.fsf@ngraves.fr> Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 11 Oct 2022 21:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58386 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Tobias Geerinckx-Rice Cc: 58386@debbugs.gnu.org X-Debbugs-Original-Cc: guix-patches@gnu.org, 58386@debbugs.gnu.org Received: via spool by 58386-submit@debbugs.gnu.org id=B58386.166552439922658 (code B ref 58386); Tue, 11 Oct 2022 21:40:01 +0000 Received: (at 58386) by debbugs.gnu.org; 11 Oct 2022 21:39:59 +0000 Received: from localhost ([127.0.0.1]:55034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiMyk-0005tN-Ie for submit@debbugs.gnu.org; Tue, 11 Oct 2022 17:39:58 -0400 Received: from 7.mo583.mail-out.ovh.net ([178.32.124.100]:60357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiMyg-0005tC-CE for 58386@debbugs.gnu.org; Tue, 11 Oct 2022 17:39:57 -0400 Received: from player697.ha.ovh.net (unknown [10.109.146.82]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id 31D2423B0C for <58386@debbugs.gnu.org>; Tue, 11 Oct 2022 21:39:51 +0000 (UTC) Received: from ngraves.fr (met42-h01-213-44-161-47.dsl.sta.abo.bbox.fr [213.44.161.47]) (Authenticated sender: ngraves@ngraves.fr) by player697.ha.ovh.net (Postfix) with ESMTPSA id 42B762F961435; Tue, 11 Oct 2022 21:39:48 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R00637cb3228-fd42-4f92-a5e8-224e66961b79, CAD2B4A3459146A86F0B95563822EA9C8829CA61) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 213.44.161.47 In-Reply-To: <87fsfxdfwk.fsf@nckx> Date: Tue, 11 Oct 2022 23:39:45 +0200 Message-ID: <87y1tmujj2.fsf@ngraves.fr> MIME-Version: 1.0 X-Ovh-Tracer-Id: 16331741099061601018 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrfeejjedgtddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufgjfffkgggtgfesthhqredttddtjeenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeelhffgheetueehkedtjedvheejheevgfeigfdvvddvgeeiteehheduueeuvddvjeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeduvdejrddtrddtrddupddvudefrdeggedrudeiuddrgeejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopeehkeefkeeiseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehkeefpdhmohguvgepshhmthhpohhuth X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves X-getmail-retrieved-from-mailbox: Patches * gnu/packages/password-utils.scm (passage): New variable. --- gnu/packages/password-utils.scm | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) -- 2.38.0 Thanks for the review! > OK, I've been looking at this for an embarrasingly long time > trying to figure out what you're trying to communicate with '(… > (list '(…))). It seems very deliberate. Any hints? :-p Not deliberate, I probably misread the copy-build-system info manual. Fixed! > No, I don't think it is. Adding this script need not affect other > packages. I understand, although I would think that choices need to be made and that this one would not annoy a lot. Just as a reminder, this patch cannot be merged before 58340. -- Best regards, Nicolas Graves diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index 8e29bef484..36b0ae7537 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -37,6 +37,7 @@ ;;; Copyright © 2022 Maxim Cournoyer ;;; Copyright © 2022 Maxime Devos ;;; Copyright © 2022 ( +;;; Copyright © 2022 Nicolas Graves ;;; ;;; This file is part of GNU Guix. ;;; @@ -57,6 +58,7 @@ (define-module (gnu packages password-utils) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix utils) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix build-system go) #:use-module (guix build-system python) @@ -589,6 +591,42 @@ (define-public password-store through the pass command.") (license license:gpl2+))) +(define-public pass-age + (package + (inherit password-store) + (name "pass-age") + (version "1.7.4a0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/FiloSottile/passage") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "17899whffnpqqx9x1nx2b8bfxbxlh1pwlglqa0kznl0cn6sb37ql")))) + (build-system copy-build-system) + (arguments + '(#:phases (modify-phases %standard-phases + (add-after 'unpack 'rename-script + (lambda _ + (rename-file "src/password-store.sh" + "src/passage")))) + #:install-plan + '(("src/passage" "/bin/") + ("src/completion/pass.bash-completion" + "/share/bash-completion/completions/") + ("src/completion/pass.zsh-completion" + "/share/zsh/site-functions/")))) + (propagated-inputs + (list util-linux git qrencode sed tree age)) + (home-page "https://github.com/FiloSottile/passage") + (synopsis "An encrypted password manager") + (description "This package provides an encrypted password manager, forked +from the @code{password-store} package. Files are encrypted with the +@command{age} encryption package with small explicit keys.") + (license license:gpl2+))) + (define-public pass-otp (package (name "pass-otp")