nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 46 lines 988 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 testers, 6 vals, 7}: 8 9buildGoModule rec { 10 pname = "vals"; 11 version = "0.41.3"; 12 13 src = fetchFromGitHub { 14 rev = "v${version}"; 15 owner = "helmfile"; 16 repo = "vals"; 17 sha256 = "sha256-SY3GXctZS5lRKqMDn5AbNA6mY++6d3BtqCcHog5NtH8="; 18 }; 19 20 vendorHash = "sha256-mTzKxVGirM/YClhNYVp9a2nuZMViAFYkl7Hq8D7ir/8="; 21 22 proxyVendor = true; 23 24 ldflags = [ 25 "-s" 26 "-w" 27 "-X main.version=${version}" 28 ]; 29 30 # Tests require connectivity to various backends. 31 doCheck = false; 32 33 passthru.tests.version = testers.testVersion { 34 package = vals; 35 command = "vals version"; 36 }; 37 38 meta = { 39 description = "Helm-like configuration values loader with support for various sources"; 40 mainProgram = "vals"; 41 license = lib.licenses.asl20; 42 homepage = "https://github.com/helmfile/vals"; 43 changelog = "https://github.com/helmfile/vals/releases/v${version}"; 44 maintainers = with lib.maintainers; [ stehessel ]; 45 }; 46}