diff --git a/pkgs/tools/security/vals/default.nix b/pkgs/tools/security/vals/default.nix new file mode 100644 index 000000000000..d886908389c3 --- /dev/null +++ b/pkgs/tools/security/vals/default.nix @@ -0,0 +1,37 @@ +{ lib, buildGoModule, fetchFromGitHub, testers, vals }: + +buildGoModule rec { + pname = "vals"; + version = "0.19.0"; + + src = fetchFromGitHub { + rev = "v${version}"; + owner = "variantdev"; + repo = pname; + sha256 = "sha256-0TO8aN1qKpGQnec6hKph6EHkRWb1dfHtyRdFYX0BjM0="; + }; + + vendorSha256 = "sha256-wxM8g553DCkoL09Icz+HoXB98z1f6mm4qzk01k09++0="; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index da5202648f88..5ccacb9f0b24 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13099,6 +13099,8 @@ with pkgs; urlwatch = callPackage ../tools/networking/urlwatch { }; + vals = callPackage ../tools/security/vals { }; + valum = callPackage ../development/web/valum { }; inherit (callPackages ../servers/varnish { })