Merge pull request #63803 from markuskowa/add-ptp

linuxptp: init at 2.0
This commit is contained in:
markuskowa 2019-06-28 10:37:34 +02:00 committed by GitHub
commit 96664094e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{ stdenv, fetchurl, linuxHeaders } :
stdenv.mkDerivation rec {
pname = "linuxptp";
version = "2.0";
src = fetchurl {
url = "mirror://sourceforge/linuxptp/${pname}-${version}.tgz";
sha256 = "0zcw8nllla06451r7bfsa31q4z8jj56j67i07l1azm473r0dj90a";
};
postPatch = ''
substituteInPlace incdefs.sh --replace \
'/usr/include/linux/' "${linuxHeaders}/include/linux/"
'';
makeFlags = [ "prefix=" ];
preInstall = ''
export DESTDIR=$out
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Implementation of the Precision Time Protocol (PTP) according to IEEE standard 1588 for Linux";
homepage = "http://linuxptp.sourceforge.net/";
maintainers = [ maintainers.markuskowa ];
license = licenses.gpl2;
platforms = platforms.linux;
};
}

View File

@ -1669,6 +1669,8 @@ in
link-grammar = callPackage ../tools/text/link-grammar { };
linuxptp = callPackage ../os-specific/linux/linuxptp { };
loadwatch = callPackage ../tools/system/loadwatch { };
loccount = callPackage ../development/tools/misc/loccount { };