summary refs log tree commit diff
path: root/pkgs/tools/system/envconsul/default.nix
blob: fcc3f217d64b4b285ec1a8c2aa73705e66e900e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  name = "envconsul-${version}";
  version = "0.6.2";
  rev = "v${version}";

  goPackagePath = "github.com/hashicorp/envconsul";

  src = fetchFromGitHub {
    inherit rev;
    owner = "hashicorp";
    repo = "envconsul";
    sha256 = "176jbicyg7vwd0kgawz859gq7ldrxyw1gx55wig7azakiidkl731";
  };

  meta = with stdenv.lib; {
    homepage = https://github.com/hashicorp/envconsul/;
    description = "Read and set environmental variables for processes from Consul";
    platforms = platforms.linux ++ platforms.darwin;
    license = licenses.mpl20;
    maintainers = with maintainers; [ pradeepchhetri ];
  };
}