2021-02-12 04:39:21 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
|
2018-04-04 12:45:54 +01:00
|
|
|
|
2021-02-12 04:39:21 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gron";
|
2021-02-11 16:14:10 +00:00
|
|
|
version = "0.6.1";
|
2018-04-04 12:45:54 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-02-12 04:39:21 +00:00
|
|
|
owner = "tomnomnom";
|
|
|
|
repo = "gron";
|
2018-04-04 12:45:54 +01:00
|
|
|
rev = "v${version}";
|
2021-02-11 16:14:10 +00:00
|
|
|
sha256 = "0qmzawkhg0qn9kxxrssbdjni2khvamhrcklv3yxc0ljmh77mh61m";
|
2018-04-04 12:45:54 +01:00
|
|
|
};
|
|
|
|
|
2021-02-12 04:39:21 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-inconsistent-vendoring.patch";
|
|
|
|
url = "https://github.com/tomnomnom/gron/pull/85/commits/d549a6cb68ed0e0ec7cc81d8275353acfe218725.patch";
|
|
|
|
sha256 = "1461v4f7w6q75l3988br0g1ynfhzsh34z38pd2w8fp57vrgkcfi5";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-02-05 07:37:29 +00:00
|
|
|
vendorSha256 = "sha256-Evn5R/LzripRgG0zOVP/DJrtjwNRwgKapsRdtZaZhlU=";
|
2018-04-04 12:45:54 +01:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2018-04-04 12:45:54 +01: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;
|
2021-02-12 04:39:21 +00:00
|
|
|
maintainers = with maintainers; [ fgaz SuperSandro2000 ];
|
|
|
|
platforms = platforms.unix;
|
2018-04-04 12:45:54 +01:00
|
|
|
};
|
|
|
|
}
|