1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
10 rev = "${pname}-${version}";
11 sha256 = "1zncyvjzllrjbdvz7c50d1xjyhs9mwqfy92ndpfc5b3mxqslw4kx";
15 substituteInPlace netselect-apt \
16 --replace "/usr/bin/" ""
19 makeFlags = [ "PREFIX=$(out)" ];
23 install -Dm555 -t $out/bin netselect netselect-apt
24 install -Dm444 -t $out/share/man/man1 *.1
29 homepage = "https://github.com/apenwarr/netselect";
30 description = "An ultrafast intelligent parallelizing binary-search implementation of \"ping\"";
31 license = licenses.bsd3;
32 platforms = platforms.linux;