mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
consul--template: extracted from goPackages
This commit is contained in:
parent
6fe27955fd
commit
9e273d5b29
18
pkgs/tools/system/consul-template/default.nix
Normal file
18
pkgs/tools/system/consul-template/default.nix
Normal 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";
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
||||
|
@ -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}";
|
||||
|
Loading…
Reference in New Issue
Block a user