depot/third_party/nixpkgs/pkgs/tools/networking/pingtcp/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

31 lines
694 B
Nix

{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "pingtcp";
version = "0.0.3";
src = fetchFromGitHub {
owner = "LanetNetwork";
repo = "pingtcp";
sha256 = "1cv84n30y03s1b83apxxyn2jv5ss1pywsahrfrpkb6zcgzzrcqn8";
rev = "refs/tags/v${version}";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake ];
enableParallelBuilding = true;
doCheck = false;
postInstall = ''
install -Dm644 {..,$out/share/doc/pingtcp}/README.md
'';
meta = with stdenv.lib; {
description = "Measure TCP handshake time";
homepage = "https://github.com/LanetNetwork/pingtcp";
license = licenses.gpl3;
platforms = platforms.linux;
};
}