btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / va / vals / package.nix
blob1487b5caa891c16bbe17f919305923fdcd8c8d10
1 { lib, buildGoModule, fetchFromGitHub, testers, vals }:
3 buildGoModule rec {
4   pname = "vals";
5   version = "0.37.7";
7   src = fetchFromGitHub {
8     rev = "v${version}";
9     owner = "helmfile";
10     repo = pname;
11     sha256 = "sha256-iRXBT3VpEVHna3GkMxVSVRqQ2HTK7gCd6LkthwrBMx4=";
12   };
14   vendorHash = "sha256-1iyJ56YKu/WVb7dPP7YE07kdbJte2/Sww8cQu+epFNc=";
16   proxyVendor = true;
18   ldflags = [
19     "-s"
20     "-w"
21     "-X main.version=${version}"
22   ];
24   # Tests require connectivity to various backends.
25   doCheck = false;
27   passthru.tests.version = testers.testVersion {
28     package = vals;
29     command = "vals version";
30   };
32   meta = with lib; {
33     description = "Helm-like configuration values loader with support for various sources";
34     mainProgram = "vals";
35     license = licenses.asl20;
36     homepage = "https://github.com/helmfile/vals";
37     changelog = "https://github.com/helmfile/vals/releases/v${version}";
38     maintainers = with maintainers; [ stehessel ];
39   };