2022-04-15 01:41:22 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gron";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "0.7.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-02-13 14:23:35 +00:00
|
|
|
owner = "tomnomnom";
|
|
|
|
repo = "gron";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-ZkAfAQsaFX7npyDcBDFS4Xa8kOMVH6yGfxGD7c0iQ+o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-K/QAG9mCIHe7PQhex3TntlGYAK9l0bESWk616N97dBs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.gronVersion=${version}" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Make JSON greppable!";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gron";
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
2021-02-13 14:23:35 +00:00
|
|
|
maintainers = with maintainers; [ fgaz SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|