2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "grepcidr";
|
|
|
|
version = "2.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.pc-tools.net/files/unix/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1yzpa1nigmmp4hir6377hrkpp0z6jnxgccaw2jbqgydbglvnm231";
|
|
|
|
};
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Filter IPv4 and IPv6 addresses matching CIDR patterns";
|
|
|
|
homepage = "http://www.pc-tools.net/unix/grepcidr/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.fadenb ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "grepcidr";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|