nixpkgs/pkgs/tools/networking/pingtcp/default.nix
Tobias Geerinckx-Rice 9fb8020e4e Add version attribute where maintainers |= nckx
This will probably be mandatory soon, and is a step in the right
direction. Removes the deprecated meta.version, and move some meta
sections to the end of the file where I should have put them in
the first place.
2016-01-25 17:35:21 +01:00

37 lines
902 B
Nix

{ stdenv, fetchgit, cmake }:
stdenv.mkDerivation rec {
name = "pingtcp-${version}";
version = "0.0.3";
# This project uses git submodules, which fetchFromGitHub doesn't support:
src = fetchgit {
sha256 = "0an4dbwcp2qv1n068q0s34lz88vl1z2rqfh3j9apbq7bislsrwdd";
rev = "refs/tags/v${version}";
url = "https://github.com/LanetNetwork/pingtcp.git";
};
nativeBuildInputs = [ cmake ];
postPatch = ''
substituteInPlace {.,pfcquirks}/CMakeLists.txt \
--replace "-march=native" ""
'';
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;
maintainers = with maintainers; [ nckx ];
};
}