about summary refs log tree commit diff
path: root/pkgs/applications/search/grepcidr/default.nix
blob: 69fc0e76932cae8ba405d639044d57a4c567c8dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  name = "grepcidr-${version}";
  version = "2.0";

  src = fetchurl {
    url = "http://www.pc-tools.net/files/unix/${name}.tar.gz";
    sha256 = "1yzpa1nigmmp4hir6377hrkpp0z6jnxgccaw2jbqgydbglvnm231";
  };

  installFlags = [ "PREFIX=$(out)" ];

  meta = with stdenv.lib; {
    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 ];
  };
}