3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/netselect/default.nix

35 lines
837 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "netselect";
version = "0.4";
2018-09-04 21:28:32 +01:00
src = fetchFromGitHub {
owner = "apenwarr";
repo = "netselect";
rev = "${pname}-${version}";
sha256 = "1zncyvjzllrjbdvz7c50d1xjyhs9mwqfy92ndpfc5b3mxqslw4kx";
};
postPatch = ''
substituteInPlace netselect-apt \
--replace "/usr/bin/" ""
'';
makeFlags = [ "PREFIX=$(out)" ];
installPhase = ''
runHook preInstall
install -Dm555 -t $out/bin netselect netselect-apt
install -Dm444 -t $out/share/man/man1 *.1
runHook postInstall
'';
2018-09-04 21:28:32 +01:00
meta = with stdenv.lib; {
homepage = https://github.com/apenwarr/netselect;
description = "An ultrafast intelligent parallelizing binary-search implementation of \"ping\"";
2018-09-04 21:28:32 +01:00
license = licenses.bsd3;
platforms = platforms.linux;
};
}