lol
1{stdenv, fetchurl}:
2
3stdenv.mkDerivation {
4 name = "netselect-0.3";
5
6 src = fetchurl {
7 url = http://alumnit.ca/~apenwarr/netselect/netselect-0.3.tar.gz;
8 sha256 = "0y69z59vylj9x9nk5jqn6ihx7dkzg09gpv2w1q1rs8fmi4jr90gy";
9 };
10
11 preBuild = ''
12 makeFlagsArray=(PREFIX=$out)
13 substituteInPlace Makefile \
14 --replace "-o root" "" \
15 --replace "-g root" "" \
16 --replace "4755" "0755"
17 '';
18
19 meta = {
20 homepage = http://alumnit.ca/~apenwarr/netselect/;
21 description = "An ultrafast intelligent parallelizing binary-search implementation of \"ping\"";
22 license = "BSD";
23 platforms = stdenv.lib.platforms.linux;
24 };
25}