83627f9931
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
32 lines
930 B
Nix
32 lines
930 B
Nix
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "consul-template";
|
|
version = "0.39.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hashicorp";
|
|
repo = "consul-template";
|
|
rev = "v${version}";
|
|
hash = "sha256-I6uv3UtYQ0tpwz/ml3ZL9mRchsqxa8UNPw+vMpvlqmM=";
|
|
};
|
|
|
|
vendorHash = "sha256-xXRIYTd3rRe54lYDWI2PiCV8lG1H6cJfYpL+hdWZClU=";
|
|
|
|
# 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";
|
|
};
|
|
}
|