2022-11-19 00:35:49 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, vals }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "vals";
|
2023-04-19 22:07:57 +00:00
|
|
|
version = "0.25.0";
|
2022-11-19 00:35:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "variantdev";
|
|
|
|
repo = pname;
|
2023-04-19 22:07:57 +00:00
|
|
|
sha256 = "sha256-MofzTQM/dREw9b+IzjvexKoYZZ/ptbdWICROtwYK4X8=";
|
2022-11-19 00:35:49 +00:00
|
|
|
};
|
|
|
|
|
2023-04-09 17:04:28 +00:00
|
|
|
vendorHash = "sha256-6DJiqDEgEHQbyIt4iShoBnagBvspd3W3vD56/FGjESs=";
|
2022-11-19 00:35:49 +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";
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = "https://github.com/variantdev/vals";
|
|
|
|
changelog = "https://github.com/variantdev/vals/releases/v${version}";
|
|
|
|
maintainers = with maintainers; [ stehessel ];
|
|
|
|
};
|
|
|
|
}
|