2022-05-18 14:49:53 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule {
|
|
|
|
pname = "cidrgrep";
|
|
|
|
version = "unstable-2020-11-17";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomdoherty";
|
|
|
|
repo = "cidrgrep";
|
|
|
|
rev = "8ad5af533e8dc33ea18ff19b7c6a41550748fe0e";
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-Bp1cST6/8ppvpgNxjUpwL498C9vTJmoWOKLJgmWqfEs=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = null;
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/cmd $out/bin/cidrgrep
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Like grep but for IPv4 CIDRs";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cidrgrep";
|
2022-05-18 14:49:53 +00:00
|
|
|
license = lib.licenses.mit;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with lib.maintainers; [ das_j ];
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
}
|