2023-05-25 02:41:51 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, envconsul }:
|
2017-02-17 19:20:28 +00:00
|
|
|
|
2022-04-07 14:46:19 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "envconsul";
|
2023-05-25 02:41:51 +00:00
|
|
|
version = "0.13.2";
|
2017-02-17 19:20:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hashicorp";
|
|
|
|
repo = "envconsul";
|
2022-04-07 14:46:19 +00:00
|
|
|
rev = "v${version}";
|
2023-05-25 02:41:51 +00:00
|
|
|
hash = "sha256-GZU1lEAI3k5EUU/z4gHR8plECudwp+YYyPSk7E0NQtI=";
|
2017-02-17 19:20:28 +00:00
|
|
|
};
|
|
|
|
|
2023-05-25 02:41:51 +00:00
|
|
|
vendorHash = "sha256-ehxeupO8CrKqkqK11ig7Pj4XTh61VOE4rT2T2SsChxw=";
|
2022-04-07 14:46:19 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/hashicorp/envconsul/version.Name=envconsul"
|
|
|
|
];
|
|
|
|
|
2023-05-25 02:41:51 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = envconsul;
|
|
|
|
version = "v${version}";
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/hashicorp/envconsul/";
|
2017-02-17 19:20:28 +00:00
|
|
|
description = "Read and set environmental variables for processes from Consul";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ pradeepchhetri ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "envconsul";
|
2017-02-17 19:20:28 +00:00
|
|
|
};
|
|
|
|
}
|