e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
32 lines
930 B
Nix
32 lines
930 B
Nix
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "consul-template";
|
|
version = "0.36.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hashicorp";
|
|
repo = "consul-template";
|
|
rev = "v${version}";
|
|
hash = "sha256-qhncff3DAJ3fiLJRVVcRZpDmzFEQI5J1cFXnlyUJRRs=";
|
|
};
|
|
|
|
vendorHash = "sha256-nOxdhVEMepZMq51M6MDIyTxBYThrwrT0C0wdwzsjoPI=";
|
|
|
|
# consul-template tests depend on vault and consul services running to
|
|
# execute tests so we skip them here
|
|
doCheck = false;
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) consul-template;
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/hashicorp/consul-template/";
|
|
description = "Generic template rendering and notifications with Consul";
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ cpcloud pradeepchhetri ];
|
|
mainProgram = "consul-template";
|
|
};
|
|
}
|