504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
37 lines
935 B
Nix
37 lines
935 B
Nix
{ lib, buildGoModule, fetchFromGitHub, testers, vals }:
|
|
|
|
buildGoModule rec {
|
|
pname = "vals";
|
|
version = "0.32.0";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "variantdev";
|
|
repo = pname;
|
|
sha256 = "sha256-UBN0QMrYyYm7O1MrduGmXOSLZ5Qwjq0LMgvWhoVwzGI=";
|
|
};
|
|
|
|
vendorHash = "sha256-2gS4m+eQSrXcMtT/7AzPW5KcGww8gSJm2doyBa6pLHQ=";
|
|
|
|
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 ];
|
|
};
|
|
}
|