2018-04-04 12:45:54 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gron";
|
2018-10-29 10:56:56 +00:00
|
|
|
version = "0.6.0";
|
2018-04-04 12:45:54 +01:00
|
|
|
|
|
|
|
owner = "tomnomnom";
|
|
|
|
repo = "gron";
|
|
|
|
goPackagePath = "github.com/${owner}/${repo}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit owner repo;
|
|
|
|
rev = "v${version}";
|
2018-10-29 10:56:56 +00:00
|
|
|
sha256 = "05f3w4zr15wd7xk75l12y5kip4gnv719a2x9w2hy23q3pnss9wk0";
|
2018-04-04 12:45:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 = [ maintainers.fgaz ];
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
};
|
|
|
|
}
|