nixpkgs/pkgs/tools/security/vals/default.nix
2023-12-09 15:46:46 +00:00

37 lines
935 B
Nix

{ lib, buildGoModule, fetchFromGitHub, testers, vals }:
buildGoModule rec {
pname = "vals";
version = "0.30.0";
src = fetchFromGitHub {
rev = "v${version}";
owner = "variantdev";
repo = pname;
sha256 = "sha256-3nzbib/oNrbnvjJ+4Z3zU2h6HSnemPap2fvufJKQIdk=";
};
vendorHash = "sha256-6i6CHa3kNe9QW87l6KjShxX/qpf1U+1c9oUoPBi1qO4=";
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 ];
};
}