mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 06:05:13 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
32 lines
692 B
Nix
32 lines
692 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;
|
|
};
|
|
}
|