From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id COcBFDg0mGHfXgAAgWs5BA (envelope-from ) for ; Sat, 20 Nov 2021 00:33:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id iAKODzg0mGEBfQAAbx9fmQ (envelope-from ) for ; Fri, 19 Nov 2021 23:33:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id ED0F5E104 for ; Sat, 20 Nov 2021 00:33:11 +0100 (CET) Received: from localhost ([::1]:37402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moDNX-0007Fx-5q for larch@yhetil.org; Fri, 19 Nov 2021 18:33:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moDNO-0007FW-Qx for guix-patches@gnu.org; Fri, 19 Nov 2021 18:33:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57525) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1moDNO-0007uj-IS for guix-patches@gnu.org; Fri, 19 Nov 2021 18:33:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1moDNO-0007jL-C1 for guix-patches@gnu.org; Fri, 19 Nov 2021 18:33:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51989] [PATCH 12/12] gnu: Add aws-vault References: <87lf1j4u2n.fsf@rekahsoft.ca> In-Reply-To: <87lf1j4u2n.fsf@rekahsoft.ca> Resent-From: "Collin J. Doering" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 19 Nov 2021 23:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51989 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51989@debbugs.gnu.org Received: via spool by 51989-submit@debbugs.gnu.org id=B51989.163736476429685 (code B ref 51989); Fri, 19 Nov 2021 23:33:02 +0000 Received: (at 51989) by debbugs.gnu.org; 19 Nov 2021 23:32:44 +0000 Received: from localhost ([127.0.0.1]:40838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moDN6-0007ii-0s for submit@debbugs.gnu.org; Fri, 19 Nov 2021 18:32:44 -0500 Received: from mail-qt1-f176.google.com ([209.85.160.176]:46635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moDN3-0007iV-P5 for 51989@debbugs.gnu.org; Fri, 19 Nov 2021 18:32:42 -0500 Received: by mail-qt1-f176.google.com with SMTP id m25so10961799qtq.13 for <51989@debbugs.gnu.org>; Fri, 19 Nov 2021 15:32:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rekahsoft.ca; s=google; h=user-agent:from:to:subject:date:message-id:mime-version; bh=UHIbZMxpTwP340NM+gd+mch9Zky3zB+hnulls3Vzv5M=; b=znQ1MTsTMvsAH266jqdgjsG2P50X28I4HPIJNtI6T+iBWklvfF3MCZDrsrK9SQ+IuW ty8ZEJ2CUBHUKtLPfYN+cyGiI9iDd9V6RXN5GVKAB6M2S1U5ZNXyPQeBEEm6jjJ3wxYV 7oMA1lbnh0Ply7yYCq7f7i2zHTQ61VzvI3NH1vVqac+ZhZ3Wh0bOdU8XdHIgDkIfOVa/ QGA8aHHS4r70O+hXNzY097dNA2fV7sqT7yB5BueVXAzi3G2tY2XxXc+jJ5JjEnBiH1I0 AUHFFnDAtIJvICrMk4Tzcj8kgwQ7mOfbIu7e8UfRO5WUr//HbFsJf/wbFEJ3aEsmDHhb 1GSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=UHIbZMxpTwP340NM+gd+mch9Zky3zB+hnulls3Vzv5M=; b=Sh/fexIT4BC9IAng8U0fXn3+SiB/Q2f094QunCWLd24TNnW77tC6FxqROJ1mE5B3N7 tF6cE/wX/hVgz7zzWmqtQk4pRWql5aw0BSRURJ2GGi5E1PeURXG8Bc5YPyVzJlvncXvf xTBLwkUBF2l/Y49E+bygkdQBXu1akOte7h7gZ9qykaWhOKIbdg1WblE458BRwbrSv8jS dTYJ7mBwLXQ6ecJAMly47tPcJdUy2iFy4s0Wo0XTB4JDeVMdWr2zEllG6vVR2DU9pIo4 oYZFsPW6eJseFFJngTYELvg9R6a1SWlQnqKshHGT6VgEnAhslnlF74j9/GBbJKPwpgV/ okPQ== X-Gm-Message-State: AOAM532CAvTzuxeEgqkfVsRhpKJxjQuMa3Uux+mUd2mh7iAxR30v/deT R0cXQo5wq5zjWCHXoTxl+Ew5wJMtxOxztw== X-Google-Smtp-Source: ABdhPJwtdTYxGUI1nMt4ySRGNxitZs5FSoW9DDycNUUk05VGz9UM5ZnsxCnIsEQFAX+qJHAid/6JCw== X-Received: by 2002:a05:622a:164c:: with SMTP id y12mr10496463qtj.63.1637364756082; Fri, 19 Nov 2021 15:32:36 -0800 (PST) Received: from rekahsoft-work (cpe0008a20f982f-cm64777d666260.cpe.net.cable.rogers.com. [99.255.210.233]) by smtp.gmail.com with ESMTPSA id s12sm630962qtk.61.2021.11.19.15.32.35 for <51989@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Nov 2021 15:32:35 -0800 (PST) User-agent: mu4e 1.6.10; emacs 27.2 From: "Collin J. Doering" Date: Fri, 19 Nov 2021 18:32:09 -0500 Message-ID: <875ysn3enh.fsf@rekahsoft.ca> MIME-Version: 1.0 Content-Type: text/plain 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637364792; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=UHIbZMxpTwP340NM+gd+mch9Zky3zB+hnulls3Vzv5M=; b=juVRa79RLM3z3saqV8lCBV0XrkKlAx9Nm3GyrWSju3Hl6q05mdot9XUePll9HtGRsttogB Uyv9/838A9T5tIqHvX+WdaWI+/B+p8PtBDEbx4jFSJV6rAxRSDgok6dL/Pkj6Rd5C6uWX5 nXSqQloaT4IYzbSKMZKim2mTzvL+CZshNkJzvLMrg91+5ZTMggSFVLRhL1Pebl8fGRg1Z6 Yhc0zM37M4WQkgJIsZskZyZTwuDIJdMllSk+Hh/HdVUGryVLl6rg++nKcWZSJOWoozI4La /9lmbakpwTwYnGZ7fQaAE6Q9T2gJnmmDmMy75WoUEHYmcrISTwWds8Hn/x3Stg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637364792; a=rsa-sha256; cv=none; b=jsbH2XrE1Mq1wHzQKP1teLm2CjXAsd1w5FH97t8P8pp0Lawadx08shDvML5HREArNC7efd tAa1gvyrQD5fjlRP7LcsRr64pKQNRUH8L8l6lcAIXunt0jc1VVrHaVwPf5ImHbeh+SKSmJ tjLJBlDE+I7T7M0AP8yTnjA2+ICQKqCwa8epv6gpYN4BdRaMU1wU8/j5g57bu0BHFXKD9l V/KnlT7cUSy9Hh/2XSTRMjng6OL+pxEoeE2yr36/5Rs7NsvnG2tHcihv9edRk0q/KyY0zS h9qNDkl9HQyBVyFWw8LfusOrkeHhTjf1JfuvU6HUfESJ0bbnly8z5zkl1By5xg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rekahsoft.ca header.s=google header.b=znQ1MTsT; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.77 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rekahsoft.ca header.s=google header.b=znQ1MTsT; dmarc=fail reason="SPF not aligned (relaxed)" header.from=rekahsoft.ca (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: ED0F5E104 X-Spam-Score: -1.77 X-Migadu-Scanner: scn1.migadu.com X-TUID: ektE5Pnbfo7A --- gnu/packages/golang.scm | 73 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 6060da744d..2e8e1ff61c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -8842,6 +8842,79 @@ (define-public go-gopkg-in-djherbis-times-v1 (description "Provides a platform-independent way to get atime, mtime, ctime and btime for files.") (license license:expat))) + +(define-public aws-vault + (package + (name "aws-vault") + (version "6.3.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/99designs/aws-vault") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "02zw0kl77yr56mw1fbvr51c4mz2265c9al2nzvnqqzdx5aha7nf8")))) + (build-system go-build-system) + (native-inputs + `(("go-keyring" ,go-keyring) + ("go-github-com-androiddnsfix" ,go-github-com-androiddnsfix) + ("go-github-com-percent" ,go-github-com-percent) + ("go-github-com-jmespath-go-jmespath" ,go-github-com-jmespath-go-jmespath) + ("go-github-com-aws-aws-sdk-go" ,go-github-com-aws-aws-sdk-go) + ("go-github-com-dvsekhvalnov-jose2go" ,go-github-com-dvsekhvalnov-jose2go) + ("go-github-com-godbus-dbus" ,go-github-com-godbus-dbus) + ("go-github-com-go-libsecret" ,go-github-com-go-libsecret) + ("go-github-com-mitchellh-go-homedir" ,go-github-com-mitchellh-go-homedir) + ("go-golang-org-x-crypto" ,go-golang-org-x-crypto) + ("go-golang-org-x-sys" ,go-golang-org-x-sys) + ("go-gopkg-in-ini" ,go-gopkg-in-ini) + ("go-github-com-skratchdot-open-golang" ,go-github-com-skratchdot-open-golang) + ("go-github-com-kingpin" ,go-github-com-kingpin) + ("go-github-com-alecthomas-template" ,go-github-com-alecthomas-template) + ("go-github-com-alecthomas-units" ,go-github-com-alecthomas-units))) + (arguments + `(#:import-path "github.com/99designs/aws-vault" + #:install-source? #f + #:phases + (modify-phases %standard-phases + (add-before 'build 'patch-version + (lambda _ + (substitute* "src/github.com/99designs/aws-vault/main.go" + (("var Version = \"dev\"") + (string-append "var Version = \"v" ,version "\""))))) + (add-after 'build 'contrib + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (zsh-site-dir (string-append out "/share/zsh/site-functions")) + (bash-completion-dir + (string-append out "/share/bash-completion/completions")) + (fish-completion-dir + (string-append out "/share/fish/completions"))) + (for-each mkdir-p + `(,zsh-site-dir ,bash-completion-dir ,fish-completion-dir)) + (with-directory-excursion + "src/github.com/99designs/aws-vault/contrib/completions" + (copy-file "zsh/aws-vault.zsh" + (string-append zsh-site-dir "/_aws-vault")) + (copy-file "bash/aws-vault.bash" + (string-append bash-completion-dir "/aws-vault")) + (copy-file "fish/aws-vault.fish" + (string-append fish-completion-dir "/aws-vault.fish"))) + #t)))))) + (synopsis + "Vault for securely storing and accessing AWS credentials") + (description + "AWS Vault is a tool to securely store and access AWS credentials. + +AWS Vault stores IAM credentials in your operating system's secure keystore and +then generates temporary credentials from those to expose to your shell and +applications. It's designed to be complementary to the AWS CLI tools, and is +aware of your profiles and configuration in ~/.aws/config.") + (home-page "https://github.com/99designs/aws-vault") + (license license:expat))) + (define-public go-keyring (package (name "go-keyring") -- 2.33.1 -- Collin J. Doering http://rekahsoft.ca http://blog.rekahsoft.ca http://git.rekahsoft.ca