at 24.05-pre 37 lines 935 B view raw
1{ lib, buildGoModule, fetchFromGitHub, testers, vals }: 2 3buildGoModule rec { 4 pname = "vals"; 5 version = "0.28.0"; 6 7 src = fetchFromGitHub { 8 rev = "v${version}"; 9 owner = "variantdev"; 10 repo = pname; 11 sha256 = "sha256-6sKwRYbWaKrnMLU+G4/s3CTjUYeovsWttAvk1MnIFPI="; 12 }; 13 14 vendorHash = "sha256-CwRhtC+Ome/oyTSd8rPpQ3TgBkFb9CM3XRc0k2g2lHU="; 15 16 ldflags = [ 17 "-s" 18 "-w" 19 "-X main.version=${version}" 20 ]; 21 22 # Tests require connectivity to various backends. 23 doCheck = false; 24 25 passthru.tests.version = testers.testVersion { 26 package = vals; 27 command = "vals version"; 28 }; 29 30 meta = with lib; { 31 description = "Helm-like configuration values loader with support for various sources"; 32 license = licenses.asl20; 33 homepage = "https://github.com/variantdev/vals"; 34 changelog = "https://github.com/variantdev/vals/releases/v${version}"; 35 maintainers = with maintainers; [ stehessel ]; 36 }; 37}