2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, linuxHeaders } :
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "linuxptp";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/linuxptp/${pname}-${version}.tgz";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-cOOOXSdk4CF0Q9pvFOiEb+QBpHIpOsE42EGcB6ZlRHo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace incdefs.sh --replace \
|
|
|
|
'/usr/include/linux/' "${linuxHeaders}/include/linux/"
|
|
|
|
'';
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
makeFlags = [
|
|
|
|
"prefix="
|
|
|
|
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
export DESTDIR=$out
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Implementation of the Precision Time Protocol (PTP) according to IEEE standard 1588 for Linux";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://linuxptp.sourceforge.net/";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.markuskowa ];
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|