|
|
|
@ -1,19 +1,24 @@ |
|
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }: |
|
|
|
|
{ lib, buildGoModule, fetchFromGitHub }: |
|
|
|
|
|
|
|
|
|
buildGoPackage rec { |
|
|
|
|
buildGoModule rec { |
|
|
|
|
pname = "envconsul"; |
|
|
|
|
version = "0.7.3"; |
|
|
|
|
rev = "v${version}"; |
|
|
|
|
|
|
|
|
|
goPackagePath = "github.com/hashicorp/envconsul"; |
|
|
|
|
version = "0.12.1"; |
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub { |
|
|
|
|
inherit rev; |
|
|
|
|
owner = "hashicorp"; |
|
|
|
|
repo = "envconsul"; |
|
|
|
|
sha256 = "03cgxkyyynr067dg5b0lhvaxn60318fj9fh55p1n43vj5nrzgnbc"; |
|
|
|
|
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"; |
|
|
|
|