at 24.11-pre 31 lines 922 B view raw
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "gron"; 5 version = "0.7.1"; 6 7 src = fetchFromGitHub { 8 owner = "tomnomnom"; 9 repo = "gron"; 10 rev = "v${version}"; 11 sha256 = "sha256-ZkAfAQsaFX7npyDcBDFS4Xa8kOMVH6yGfxGD7c0iQ+o="; 12 }; 13 14 vendorHash = "sha256-K/QAG9mCIHe7PQhex3TntlGYAK9l0bESWk616N97dBs="; 15 16 ldflags = [ "-s" "-w" "-X main.gronVersion=${version}" ]; 17 18 meta = with lib; { 19 description = "Make JSON greppable!"; 20 mainProgram = "gron"; 21 longDescription = '' 22 gron transforms JSON into discrete assignments to make it easier to grep 23 for what you want and see the absolute 'path' to it. It eases the 24 exploration of APIs that return large blobs of JSON but have terrible 25 documentation. 26 ''; 27 homepage = "https://github.com/tomnomnom/gron"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ fgaz SuperSandro2000 ]; 30 }; 31}