2007-08-31 12:14:05 +01:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "netselect-0.3";
|
2018-09-04 21:28:32 +01:00
|
|
|
|
2007-08-31 12:14:05 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = http://alumnit.ca/~apenwarr/netselect/netselect-0.3.tar.gz;
|
|
|
|
sha256 = "0y69z59vylj9x9nk5jqn6ihx7dkzg09gpv2w1q1rs8fmi4jr90gy";
|
|
|
|
};
|
|
|
|
|
2017-06-28 20:14:57 +01:00
|
|
|
preBuild = ''
|
2007-08-31 12:14:05 +01:00
|
|
|
makeFlagsArray=(PREFIX=$out)
|
2017-06-28 20:14:57 +01:00
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "-o root" "" \
|
|
|
|
--replace "-g root" "" \
|
|
|
|
--replace "4755" "0755"
|
|
|
|
'';
|
2018-09-04 21:28:32 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/apenwarr/netselect;
|
2007-08-31 12:14:05 +01:00
|
|
|
description = "An ultrafast intelligent parallelizing binary-search implementation of \"ping\"";
|
2018-09-04 21:28:32 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
2007-08-31 12:14:05 +01:00
|
|
|
};
|
|
|
|
}
|