Merge pull request #102402 from marsam/update-vault

vault: 1.5.4 -> 1.5.5
This commit is contained in:
Mario Rodas 2020-11-02 15:54:34 -05:00 committed by GitHub
commit 0da76dab4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 10 deletions

View File

@ -1,14 +1,14 @@
{ stdenv, fetchFromGitHub, buildGoPackage, installShellFiles }: { stdenv, fetchFromGitHub, buildGoPackage, installShellFiles, nixosTests }:
buildGoPackage rec { buildGoPackage rec {
pname = "vault"; pname = "vault";
version = "1.5.4"; version = "1.5.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hashicorp"; owner = "hashicorp";
repo = "vault"; repo = "vault";
rev = "v${version}"; rev = "v${version}";
sha256 = "0bin0r0qmyz8xal910csbclzc6ng2xv69jszyi69gd6n6f43vqw8"; sha256 = "144v7vmp2amv29y6d50jzc21zrcw0g6qlwks16mvqy2hnbsnzdwa";
}; };
goPackagePath = "github.com/hashicorp/vault"; goPackagePath = "github.com/hashicorp/vault";
@ -24,6 +24,8 @@ buildGoPackage rec {
installShellCompletion vault.bash installShellCompletion vault.bash
''; '';
passthru.tests.vault = nixosTests.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";

View File

@ -1,30 +1,30 @@
{ stdenv, fetchurl, unzip }: { stdenv, fetchurl, unzip, nixosTests }:
let let
version = "1.5.4"; version = "1.5.5";
sources = let sources = let
base = "https://releases.hashicorp.com/vault/${version}"; base = "https://releases.hashicorp.com/vault/${version}";
in { in {
x86_64-linux = fetchurl { x86_64-linux = fetchurl {
url = "${base}/vault_${version}_linux_amd64.zip"; url = "${base}/vault_${version}_linux_amd64.zip";
sha256 = "1cyk9v70w0px2sxg8dichqgk38br9hc4kdl37jk57ci5gdl6w5ah"; sha256 = "1vg1c34d2ck2a96p800gblq06jakg29yzrczaa6nsmnnr3k5hs9a";
}; };
i686-linux = fetchurl { i686-linux = fetchurl {
url = "${base}/vault_${version}_linux_386.zip"; url = "${base}/vault_${version}_linux_386.zip";
sha256 = "1n6hmhd4g2c6zzbimslxpghma5dyqwb96w60srbf9gn2vrimg4l4"; sha256 = "1hf46mm7shvq9gpi50b6hcp2cydhzbkwigqcnl527y4cvc9iv7in";
}; };
x86_64-darwin = fetchurl { x86_64-darwin = fetchurl {
url = "${base}/vault_${version}_darwin_amd64.zip"; url = "${base}/vault_${version}_darwin_amd64.zip";
sha256 = "05d5m8kdwl6mcx3swkasm5zcmddlyl6m9lwj26vbg9pllx9zxvqm"; sha256 = "1jna9rmdhqi7j8p67y9dzq716dv8fn4rjsn76mbvlgc5wylky6gz";
}; };
i686-darwin = fetchurl { i686-darwin = fetchurl {
url = "${base}/vault_${version}_darwin_386.zip"; url = "${base}/vault_${version}_darwin_386.zip";
sha256 = "109hisdwd58za541qhw61bscfrh3szzfn8vdmr4c7nh5praiqznb"; sha256 = "1qv02zd5dwaw1i52pnbyshbd8cy0x5nr3f2s9l3p9ci5rzad4rjn";
}; };
aarch64-linux = fetchurl { aarch64-linux = fetchurl {
url = "${base}/vault_${version}_linux_arm64.zip"; url = "${base}/vault_${version}_linux_arm64.zip";
sha256 = "0q8icl5ncvixrdmsd2ilzvpa6c1pswa6zgh3vccsj7sg8mxprjmr"; sha256 = "1y4i62qq5cx2bv18dnbgys2qa5xx0acn8j3hdh0dbsw0zyms4qv7";
}; };
}; };
@ -44,6 +44,8 @@ in stdenv.mkDerivation {
echo "complete -C $out/bin/vault vault" > $out/share/bash-completion/completions/vault echo "complete -C $out/bin/vault vault" > $out/share/bash-completion/completions/vault
''; '';
passthru.tests.vault = nixosTests.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, this binary includes the UI"; description = "A tool for managing secrets, this binary includes the UI";