1 { lib, stdenv, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
8 owner = "LanetNetwork";
10 sha256 = "1cv84n30y03s1b83apxxyn2jv5ss1pywsahrfrpkb6zcgzzrcqn8";
11 rev = "refs/tags/v${version}";
12 fetchSubmodules = true;
15 nativeBuildInputs = [ cmake ];
20 install -Dm644 {..,$out/share/doc/pingtcp}/README.md
24 description = "Measure TCP handshake time";
25 homepage = "https://github.com/LanetNetwork/pingtcp";
26 license = licenses.gpl3;
27 platforms = platforms.linux;
28 mainProgram = "pingtcp";