5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
37 lines
935 B
Nix
37 lines
935 B
Nix
{ lib, buildGoModule, fetchFromGitHub, testers, vals }:
|
|
|
|
buildGoModule rec {
|
|
pname = "vals";
|
|
version = "0.28.0";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "variantdev";
|
|
repo = pname;
|
|
sha256 = "sha256-6sKwRYbWaKrnMLU+G4/s3CTjUYeovsWttAvk1MnIFPI=";
|
|
};
|
|
|
|
vendorHash = "sha256-CwRhtC+Ome/oyTSd8rPpQ3TgBkFb9CM3XRc0k2g2lHU=";
|
|
|
|
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 ];
|
|
};
|
|
}
|