2022-12-28 21:21:41 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, vals }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "vals";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.37.5";
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
owner = "helmfile";
|
2022-12-28 21:21:41 +00:00
|
|
|
repo = pname;
|
2024-09-19 14:19:46 +00:00
|
|
|
sha256 = "sha256-ezF8cV3JPE/GObpTc4wPw/YcQrOKNi2bsRs3svLWpV8=";
|
2022-12-28 21:21:41 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
vendorHash = "sha256-jwxKFgUhBilX/HxwjtHwLzmyUFrM8snM6Sq1CdY7oOY=";
|
2024-06-20 14:57:18 +00:00
|
|
|
|
|
|
|
proxyVendor = true;
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests require connectivity to various backends.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = vals;
|
|
|
|
command = "vals version";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Helm-like configuration values loader with support for various sources";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "vals";
|
2022-12-28 21:21:41 +00:00
|
|
|
license = licenses.asl20;
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://github.com/helmfile/vals";
|
|
|
|
changelog = "https://github.com/helmfile/vals/releases/v${version}";
|
2022-12-28 21:21:41 +00:00
|
|
|
maintainers = with maintainers; [ stehessel ];
|
|
|
|
};
|
|
|
|
}
|