2016-01-04 15:59:31 +01:00
|
|
|
{ stdenv, fetchgit, cmake }:
|
|
|
|
|
2016-01-24 20:31:44 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-01-04 15:59:31 +01:00
|
|
|
name = "pingtcp-${version}";
|
2016-01-24 20:31:44 +01:00
|
|
|
version = "0.0.3";
|
2016-01-04 15:59:31 +01:00
|
|
|
|
|
|
|
# This project uses git submodules, which fetchFromGitHub doesn't support:
|
|
|
|
src = fetchgit {
|
2016-06-02 13:26:44 +02:00
|
|
|
sha256 = "1cv84n30y03s1b83apxxyn2jv5ss1pywsahrfrpkb6zcgzzrcqn8";
|
2016-01-04 15:59:31 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
url = "https://github.com/LanetNetwork/pingtcp.git";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2016-01-04 21:13:46 +01:00
|
|
|
postInstall = ''
|
|
|
|
install -Dm644 {..,$out/share/doc/pingtcp}/README.md
|
|
|
|
'';
|
|
|
|
|
2016-01-04 15:59:31 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Measure TCP handshake time";
|
|
|
|
homepage = https://github.com/LanetNetwork/pingtcp;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|