2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, linuxHeaders } :
|
2019-06-24 11:48:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "linuxptp";
|
2021-07-10 11:04:27 +00:00
|
|
|
version = "3.1.1";
|
2019-06-24 11:48:05 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/linuxptp/${pname}-${version}.tgz";
|
2021-07-10 11:04:27 +00:00
|
|
|
sha256 = "1nf0w4xyzg884v8blb81zkk6q8p6zbiq9lx61jdqwbbzkdgqbmll";
|
2019-06-24 11:48:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace incdefs.sh --replace \
|
|
|
|
'/usr/include/linux/' "${linuxHeaders}/include/linux/"
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [ "prefix=" ];
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
export DESTDIR=$out
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-06-24 11:48:05 +00:00
|
|
|
description = "Implementation of the Precision Time Protocol (PTP) according to IEEE standard 1588 for Linux";
|
|
|
|
homepage = "http://linuxptp.sourceforge.net/";
|
|
|
|
maintainers = [ maintainers.markuskowa ];
|
2021-02-01 12:36:34 +00:00
|
|
|
license = licenses.gpl2Only;
|
2019-06-24 11:48:05 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|