vault: extracted from goPackages

This commit is contained in:
Kamil Chmielewski 2016-06-04 23:13:30 +02:00
parent 9e273d5b29
commit b70c24f1f2
3 changed files with 19 additions and 24 deletions

View file

@ -0,0 +1,18 @@
# This file was generated by go2nix.
{ stdenv, lib, go16Packages, fetchgit, fetchhg, fetchbzr, fetchsvn }:
with go16Packages;
buildGoPackage rec {
name = "vault-${version}";
version = "0.5.2";
rev = "v${version}";
goPackagePath = "github.com/hashicorp/vault";
src = fetchgit {
inherit rev;
url = "https://github.com/hashicorp/vault";
sha256 = "085rk5i480wdlkn2p14yxi8zgsc11595nkkda1i77c4vjkllbkdy";
};
}

View file

@ -16845,7 +16845,7 @@ in
utf8proc = callPackage ../development/libraries/utf8proc { };
vault = goPackages.vault.bin // { outputs = [ "bin" ]; };
vault = callPackage ../tools/security/vault { };
vbam = callPackage ../misc/emulators/vbam {};

View file

@ -3494,29 +3494,6 @@ let
sha256 = "0hswk9ihv3js5blp9pk2bpig64zkmyp5p1zhmgydfhb0dr2w8iad";
};
vault = buildFromGitHub {
rev = "v0.5.2";
owner = "hashicorp";
repo = "vault";
sha256 = "085rk5i480wdlkn2p14yxi8zgsc11595nkkda1i77c4vjkllbkdy";
#postPatch = ''
# grep -r '/gen/' | awk -F: '{print $1}' | xargs sed -i 's,/gen/,/apis/,g'
#'';
# We just want the consul api not all of consul
extraSrcs = [
{ inherit (consul) src goPackagePath; }
];
buildInputs = [
armon.go-metrics go-radix aws-sdk-go go-etcd structs ldap mysql gocql
golang-lru go-github hashicorp.aws-sdk-go errwrap go-multierror go-syslog
hcl logutils osext pq cli copystructure go-homedir mapstructure
reflectwalk columnize go-zookeeper crypto net oauth2
];
};
vcs = buildFromGitHub {
rev = "1.4.0";
owner = "Masterminds";