From d8046322a9da69a4e37ccd6aa00cc10a545d26e1 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 31 Aug 2007 11:14:05 +0000 Subject: [PATCH] * Added netselect. svn path=/nixpkgs/trunk/; revision=9225 --- pkgs/tools/networking/netselect/default.nix | 21 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/tools/networking/netselect/default.nix diff --git a/pkgs/tools/networking/netselect/default.nix b/pkgs/tools/networking/netselect/default.nix new file mode 100644 index 00000000000..2c2e9469291 --- /dev/null +++ b/pkgs/tools/networking/netselect/default.nix @@ -0,0 +1,21 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "netselect-0.3"; + + src = fetchurl { + url = http://alumnit.ca/~apenwarr/netselect/netselect-0.3.tar.gz; + sha256 = "0y69z59vylj9x9nk5jqn6ihx7dkzg09gpv2w1q1rs8fmi4jr90gy"; + }; + + preBuild = " + makeFlagsArray=(PREFIX=$out) + substituteInPlace Makefile --replace '-o root' '' --replace '-g root' '' + "; + + meta = { + homepage = http://alumnit.ca/~apenwarr/netselect/; + description = "An ultrafast intelligent parallelizing binary-search implementation of \"ping\""; + license = "BSD"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f299868d95f..208c7f90677 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -501,6 +501,10 @@ rec { inherit fetchurl stdenv; }; + netselect = import ../tools/networking/netselect { + inherit fetchurl stdenv; + }; + nmap = import ../tools/security/nmap { inherit fetchurl stdenv libpcap pkgconfig; inherit (xlibs) libX11;