valut: add bash completions
This commit is contained in:
parent
a50fc480c3
commit
a979297a96
@ -1,6 +1,13 @@
|
|||||||
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
let
|
||||||
|
vaultBashCompletions = fetchFromGitHub {
|
||||||
|
owner = "iljaweis";
|
||||||
|
repo = "vault-bash-completion";
|
||||||
|
rev = "62c142e20929f930c893ebe3366350d735e81fbd";
|
||||||
|
sha256 = "0nfv10ykjq9751ijdyq728gjlgldm1lxvrar8kf6nz6rdfnnl2n5";
|
||||||
|
};
|
||||||
|
in buildGoPackage rec {
|
||||||
name = "vault-${version}";
|
name = "vault-${version}";
|
||||||
version = "0.6.1";
|
version = "0.6.1";
|
||||||
|
|
||||||
@ -18,6 +25,11 @@ buildGoPackage rec {
|
|||||||
-X github.com/hashicorp/vault/version.GitCommit=${version}
|
-X github.com/hashicorp/vault/version.GitCommit=${version}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p $bin/share/bash-completion/completions/
|
||||||
|
cp ${vaultBashCompletions}/vault-bash-completion.sh $bin/share/bash-completion/completions/vault
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://www.vaultproject.io;
|
homepage = https://www.vaultproject.io;
|
||||||
description = "A tool for managing secrets";
|
description = "A tool for managing secrets";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user