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

33 lines
908 B
Nix
Raw Normal View History

2018-04-04 13:45:54 +02:00
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "gron-${version}";
2018-05-01 11:13:59 +02:00
version = "0.5.2";
2018-04-04 13:45:54 +02:00
owner = "tomnomnom";
repo = "gron";
goPackagePath = "github.com/${owner}/${repo}";
src = fetchFromGitHub {
inherit owner repo;
rev = "v${version}";
2018-05-01 11:13:59 +02:00
sha256 = "0nxcvih8n5a4f0a53dxaipab5ckqxgnsznzymhfw5kv4inr9v6j6";
2018-04-04 13:45:54 +02: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;
};
}