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