depot/third_party/nixpkgs/pkgs/tools/security/vals/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

37 lines
935 B
Nix

{ lib, buildGoModule, fetchFromGitHub, testers, vals }:
buildGoModule rec {
pname = "vals";
version = "0.33.0";
src = fetchFromGitHub {
rev = "v${version}";
owner = "variantdev";
repo = pname;
sha256 = "sha256-ZF73oLe/2s+zsMNElgjnVT7GCsH4VSP1IWTy647JZyw=";
};
vendorHash = "sha256-1wlwG0YaLcoLEh5t1hAfgQ+8EMfMDQn430nWGsuFTqs=";
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 ];
};
}