1 { lib, stdenv, fetchFromGitHub, linuxHeaders } :
4 stdenv.mkDerivation rec {
8 src = fetchFromGitHub {
12 hash = "sha256-w1buo+D8Mnd6ytMhQYhvCDqt+RejlNSN/iVjrDR+Khk=";
15 outputs = [ "out" "man" ];
18 substituteInPlace incdefs.sh --replace-fail \
19 '/usr/include/linux/' "${linuxHeaders}/include/linux/"
24 "CROSS_COMPILE=${stdenv.cc.targetPrefix}"
31 enableParallelBuilding = true;
34 description = "Implementation of the Precision Time Protocol (PTP) according to IEEE standard 1588 for Linux";
35 homepage = "https://linuxptp.nwtime.org";
36 maintainers = [ maintainers.markuskowa ];
37 license = licenses.gpl2Only;
38 platforms = platforms.linux;