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