gron: switch to buildGoModule, add SuperSandro2000 as maintainer
This commit is contained in:
parent
a894107839
commit
024fa9bd40
@ -1,20 +1,25 @@
|
|||||||
{ lib, buildGoPackage, fetchFromGitHub }:
|
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
pname = "gron";
|
pname = "gron";
|
||||||
version = "0.6.1";
|
version = "0.6.1";
|
||||||
|
|
||||||
owner = "tomnomnom";
|
|
||||||
repo = "gron";
|
|
||||||
goPackagePath = "github.com/${owner}/${repo}";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
inherit owner repo;
|
owner = "tomnomnom";
|
||||||
|
repo = "gron";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0qmzawkhg0qn9kxxrssbdjni2khvamhrcklv3yxc0ljmh77mh61m";
|
sha256 = "0qmzawkhg0qn9kxxrssbdjni2khvamhrcklv3yxc0ljmh77mh61m";
|
||||||
};
|
};
|
||||||
|
|
||||||
goDeps = ./deps.nix;
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
name = "fix-inconsistent-vendoring.patch";
|
||||||
|
url = "https://github.com/tomnomnom/gron/pull/85/commits/d549a6cb68ed0e0ec7cc81d8275353acfe218725.patch";
|
||||||
|
sha256 = "1461v4f7w6q75l3988br0g1ynfhzsh34z38pd2w8fp57vrgkcfi5";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
vendorSha256 = "0va88c3rjlc2nbpqx4ila36rwrx57wcdhig4jp9q58vv4zqc2yxy";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Make JSON greppable!";
|
description = "Make JSON greppable!";
|
||||||
@ -26,7 +31,7 @@ buildGoPackage rec {
|
|||||||
'';
|
'';
|
||||||
homepage = "https://github.com/tomnomnom/gron";
|
homepage = "https://github.com/tomnomnom/gron";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.fgaz ];
|
maintainers = with maintainers; [ fgaz SuperSandro2000 ];
|
||||||
platforms = with platforms; linux ++ darwin;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
57
pkgs/development/tools/gron/deps.nix
generated
57
pkgs/development/tools/gron/deps.nix
generated
@ -1,57 +0,0 @@
|
|||||||
[
|
|
||||||
rec {
|
|
||||||
owner = "fatih";
|
|
||||||
repo = "color";
|
|
||||||
goPackagePath = "github.com/${owner}/${repo}";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/${owner}/${repo}";
|
|
||||||
rev = "v1.7.0";
|
|
||||||
sha256 = "0v8msvg38r8d1iiq2i5r4xyfx0invhc941kjrsg5gzwvagv55inv";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
rec {
|
|
||||||
owner = "nwidger";
|
|
||||||
repo = "jsoncolor";
|
|
||||||
goPackagePath = "github.com/${owner}/${repo}";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/${owner}/${repo}";
|
|
||||||
rev = "75a6de4340e59be95f0884b9cebdda246e0fdf40";
|
|
||||||
sha256 = "0aiv42xijrqgrxfx6pfyrndpwqv8i1qwsk190jdczyjxlnki2nki";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
rec {
|
|
||||||
owner = "pkg";
|
|
||||||
repo = "errors";
|
|
||||||
goPackagePath = "github.com/${owner}/${repo}";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/${owner}/${repo}";
|
|
||||||
rev = "v0.8.0";
|
|
||||||
sha256 = "001i6n71ghp2l6kdl3qq1v2vmghcz3kicv9a5wgcihrzigm75pp5";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
rec {
|
|
||||||
owner = "mattn";
|
|
||||||
repo = "go-colorable";
|
|
||||||
goPackagePath = "github.com/${owner}/${repo}";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/${owner}/${repo}";
|
|
||||||
rev = "v0.0.9";
|
|
||||||
sha256 = "1nwjmsppsjicr7anq8na6md7b1z84l9ppnlr045hhxjvbkqwalvx";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
rec {
|
|
||||||
owner = "mattn";
|
|
||||||
repo = "go-isatty";
|
|
||||||
goPackagePath = "github.com/${owner}/${repo}";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/${owner}/${repo}";
|
|
||||||
rev = "v0.0.4";
|
|
||||||
sha256 = "0zs92j2cqaw9j8qx1sdxpv3ap0rgbs0vrvi72m40mg8aa36gd39w";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
]
|
|
Loading…
x
Reference in New Issue
Block a user