nixpkgs/pkgs/tools/security/vals/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
955 B
Nix
Raw Normal View History

2022-11-19 01:35:49 +01:00
{ lib, buildGoModule, fetchFromGitHub, testers, vals }:
buildGoModule rec {
pname = "vals";
2024-04-04 19:46:04 +02:00
version = "0.37.0";
2022-11-19 01:35:49 +01:00
src = fetchFromGitHub {
rev = "v${version}";
owner = "helmfile";
2022-11-19 01:35:49 +01:00
repo = pname;
2024-04-04 19:46:04 +02:00
sha256 = "sha256-R/nTlB8VM41Yah+3sH/J3Y3m9KUFsIZQNQ9kFddo+Mo=";
2022-11-19 01:35:49 +01:00
};
2024-04-04 19:46:04 +02:00
vendorHash = "sha256-VKJIbsVIIEEGqo+LXfYzhIJLtcj0jbbq/UXVpykgcz8=";
2022-11-19 01:35:49 +01: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";
mainProgram = "vals";
2022-11-19 01:35:49 +01:00
license = licenses.asl20;
homepage = "https://github.com/helmfile/vals";
changelog = "https://github.com/helmfile/vals/releases/v${version}";
2022-11-19 01:35:49 +01:00
maintainers = with maintainers; [ stehessel ];
};
}