nixpkgs/pkgs/by-name/en/envconsul/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
868 B
Nix
Raw Normal View History

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 {
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}";
};
meta = with lib; {
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
};
}