vault: use buildGoPackage
This commit is contained in:
parent
ffc69d2019
commit
9db2a8154c
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchFromGitHub, buildGoModule }:
|
{ stdenv, fetchFromGitHub, buildGoPackage }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoPackage rec {
|
||||||
pname = "vault";
|
pname = "vault";
|
||||||
version = "1.2.3";
|
version = "1.2.3";
|
||||||
|
|
||||||
@ -11,7 +11,9 @@ buildGoModule rec {
|
|||||||
sha256 = "11zi12j09vi6j112a1n8f7sxwp15pbh0801bzh27ihcy01hlzdf8";
|
sha256 = "11zi12j09vi6j112a1n8f7sxwp15pbh0801bzh27ihcy01hlzdf8";
|
||||||
};
|
};
|
||||||
|
|
||||||
modSha256 = "10pr3piv6hrsc562qagpn1h5wckiziyfqraj13172hdglz3n2i7q";
|
goPackagePath = "github.com/hashicorp/vault";
|
||||||
|
|
||||||
|
subPackages = [ "." ];
|
||||||
|
|
||||||
buildFlagsArray = [
|
buildFlagsArray = [
|
||||||
"-tags='vault'"
|
"-tags='vault'"
|
||||||
@ -19,8 +21,8 @@ buildGoModule rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/bash-completion/completions
|
mkdir -p $bin/share/bash-completion/completions
|
||||||
echo "complete -C $out/bin/vault vault" > $out/share/bash-completion/completions/vault
|
echo "complete -C $bin/bin/vault vault" > $bin/share/bash-completion/completions/vault
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user