mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
ff323ed355
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
31 lines
896 B
Nix
31 lines
896 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gron";
|
|
version = "0.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tomnomnom";
|
|
repo = "gron";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-ZkAfAQsaFX7npyDcBDFS4Xa8kOMVH6yGfxGD7c0iQ+o=";
|
|
};
|
|
|
|
vendorHash = "sha256-K/QAG9mCIHe7PQhex3TntlGYAK9l0bESWk616N97dBs=";
|
|
|
|
ldflags = [ "-s" "-w" "-X main.gronVersion=${version}" ];
|
|
|
|
meta = with 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 = with maintainers; [ fgaz SuperSandro2000 ];
|
|
};
|
|
}
|