3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/pingtcp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
658 B
Nix
Raw Normal View History

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