2019-06-24 12:48:05 +01:00
|
|
|
{ stdenv, fetchurl, linuxHeaders } :
|
|
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "linuxptp";
|
2020-07-29 00:39:02 +01:00
|
|
|
version = "3.0";
|
2019-06-24 12:48:05 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/linuxptp/${pname}-${version}.tgz";
|
2020-07-29 00:39:02 +01:00
|
|
|
sha256 = "11aps4bc0maihldlb2d0yh2fnj6x4vwjad337kszyny74akyqk6p";
|
2019-06-24 12:48:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|