2018-10-08 12:30:33 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake }:
|
2016-01-04 14:59:31 +00:00
|
|
|
|
2016-01-24 19:31:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "pingtcp";
|
2016-01-24 19:31:44 +00:00
|
|
|
version = "0.0.3";
|
2016-01-04 14:59:31 +00:00
|
|
|
|
2018-10-08 12:30:33 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LanetNetwork";
|
|
|
|
repo = "pingtcp";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "1cv84n30y03s1b83apxxyn2jv5ss1pywsahrfrpkb6zcgzzrcqn8";
|
2016-01-04 14:59:31 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2018-10-08 12:30:33 +01:00
|
|
|
fetchSubmodules = true;
|
2016-01-04 14:59:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2016-01-04 20:13:46 +00:00
|
|
|
postInstall = ''
|
|
|
|
install -Dm644 {..,$out/share/doc/pingtcp}/README.md
|
|
|
|
'';
|
|
|
|
|
2016-01-04 14:59:31 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Measure TCP handshake time";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/LanetNetwork/pingtcp";
|
2016-01-04 14:59:31 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|