1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00
nixpkgs/pkgs/tools/networking/netselect/default.nix
Renaud a8ac1ef6a4
netselect: 0.3 -> 0.4
and fetch from GH repo since http://alumnit.ca/~apenwarr/netselect/ is gone
2018-11-12 22:04:36 +01:00

35 lines
830 B
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "netselect-${version}";
version = "0.4";
src = fetchFromGitHub {
owner = "apenwarr";
repo = "netselect";
rev = name;
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
'';
meta = with stdenv.lib; {
homepage = https://github.com/apenwarr/netselect;
description = "An ultrafast intelligent parallelizing binary-search implementation of \"ping\"";
license = licenses.bsd3;
platforms = platforms.linux;
};
}