consul--template: extracted from goPackages

This commit is contained in:
Kamil Chmielewski 2016-06-04 22:31:11 +02:00
parent 6fe27955fd
commit 9e273d5b29
3 changed files with 19 additions and 22 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 = "consul-template-${version}";
version = "0.14.0";
rev = "v${version}";
goPackagePath = "github.com/hashicorp/consul-template";
src = fetchgit {
inherit rev;
url = "https://github.com/hashicorp/consul-template";
sha256 = "15zsax44g3dwjmmm4fpb54mvsjvjf3b6g3ijskgipvhcy0d3j938";
};
}

View File

@ -708,7 +708,7 @@ in
consul-alerts = callPackage ../servers/monitoring/consul-alerts { };
consul-template = goPackages.consul-template.bin // { outputs = [ "bin" ]; };
consul-template = callPackage ../tools/system/consul-template { };
corosync = callPackage ../servers/corosync { };

View File

@ -522,27 +522,6 @@ let
buildInputs = [ raft raft-boltdb raft-mdb ];
};
consul-template = buildGoPackage rec {
rev = "v0.14.0";
name = "consul-template-${rev}";
goPackagePath = "github.com/hashicorp/consul-template";
src = fetchFromGitHub {
inherit rev;
owner = "hashicorp";
repo = "consul-template";
sha256 = "15zsax44g3dwjmmm4fpb54mvsjvjf3b6g3ijskgipvhcy0d3j938";
};
# We just want the consul api not all of consul and vault
extraSrcs = [
{ inherit (consul) src goPackagePath; }
{ inherit (vault) src goPackagePath; }
];
buildInputs = [ go-multierror go-syslog hcl logutils mapstructure pkgs.zip ];
};
context = buildGoPackage rec {
rev = "215affda49addc4c8ef7e2534915df2c8c35c6cd";
name = "config-${stdenv.lib.strings.substring 0 7 rev}";