nixpkgs/pkgs/development/tools/gron/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
896 B
Nix
Raw Normal View History

2022-04-14 09:29:46 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
2018-04-04 11:45:54 +00:00
buildGoModule rec {
pname = "gron";
2022-04-14 09:29:46 +00:00
version = "0.7.1";
2018-04-04 11:45:54 +00:00
src = fetchFromGitHub {
owner = "tomnomnom";
repo = "gron";
2018-04-04 11:45:54 +00:00
rev = "v${version}";
2022-04-14 09:29:46 +00:00
sha256 = "sha256-ZkAfAQsaFX7npyDcBDFS4Xa8kOMVH6yGfxGD7c0iQ+o=";
2018-04-04 11:45:54 +00:00
};
vendorHash = "sha256-K/QAG9mCIHe7PQhex3TntlGYAK9l0bESWk616N97dBs=";
2018-04-04 11:45:54 +00:00
2023-07-12 22:30:00 +00:00
ldflags = [ "-s" "-w" "-X main.gronVersion=${version}" ];
meta = with lib; {
2018-04-04 11:45:54 +00:00
description = "Make JSON greppable!";
longDescription = ''
gron transforms JSON into discrete assignments to make it easier to grep
for what you want and see the absolute 'path' to it. It eases the
exploration of APIs that return large blobs of JSON but have terrible
documentation.
'';
homepage = "https://github.com/tomnomnom/gron";
license = licenses.mit;
maintainers = with maintainers; [ fgaz SuperSandro2000 ];
2018-04-04 11:45:54 +00:00
};
}