depot/third_party/nixpkgs/pkgs/tools/system/envconsul/default.nix
Default email 22017988c6 Project import generated by Copybara.
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
2022-04-27 11:35:20 +02:00

29 lines
765 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "envconsul";
version = "0.12.1";
src = fetchFromGitHub {
owner = "hashicorp";
repo = "envconsul";
rev = "v${version}";
sha256 = "sha256-oV+dGenyNYdVLFn43p+J9TgIbliYOppAKr1ePlMF0d4=";
};
vendorSha256 = "sha256-kal1HR9zRVhQKR/ql63hju7XIHU1KRNDTAlOEqzYR4o=";
ldflags = [
"-s"
"-w"
"-X github.com/hashicorp/envconsul/version.Name=envconsul"
];
meta = with 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 ];
};
}