2022-05-06 21:19:02 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule {
|
|
|
|
pname = "cidrgrep";
|
|
|
|
version = "unstable-2020-11-17";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomdoherty";
|
|
|
|
repo = "cidrgrep";
|
|
|
|
rev = "8ad5af533e8dc33ea18ff19b7c6a41550748fe0e";
|
2022-06-03 00:56:16 +00:00
|
|
|
hash = "sha256-Bp1cST6/8ppvpgNxjUpwL498C9vTJmoWOKLJgmWqfEs=";
|
2022-05-06 21:19:02 +00:00
|
|
|
};
|
|
|
|
|
2023-01-21 16:35:00 +00:00
|
|
|
vendorSha256 = null;
|
2022-05-06 21:19:02 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/cmd $out/bin/cidrgrep
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Like grep but for IPv4 CIDRs";
|
|
|
|
license = lib.licenses.mit;
|
2022-06-03 00:56:16 +00:00
|
|
|
maintainers = with lib.maintainers; [ das_j ];
|
2022-05-06 21:19:02 +00:00
|
|
|
};
|
|
|
|
}
|