at 24.11-pre 36 lines 873 B view raw
1{ lib, stdenv, fetchurl, linuxHeaders } : 2 3 4stdenv.mkDerivation rec { 5 pname = "linuxptp"; 6 version = "4.2"; 7 8 src = fetchurl { 9 url = "mirror://sourceforge/linuxptp/${pname}-${version}.tgz"; 10 hash = "sha256-cOOOXSdk4CF0Q9pvFOiEb+QBpHIpOsE42EGcB6ZlRHo="; 11 }; 12 13 postPatch = '' 14 substituteInPlace incdefs.sh --replace \ 15 '/usr/include/linux/' "${linuxHeaders}/include/linux/" 16 ''; 17 18 makeFlags = [ 19 "prefix=" 20 "CROSS_COMPILE=${stdenv.cc.targetPrefix}" 21 ]; 22 23 preInstall = '' 24 export DESTDIR=$out 25 ''; 26 27 enableParallelBuilding = true; 28 29 meta = with lib; { 30 description = "Implementation of the Precision Time Protocol (PTP) according to IEEE standard 1588 for Linux"; 31 homepage = "https://linuxptp.sourceforge.net/"; 32 maintainers = [ maintainers.markuskowa ]; 33 license = licenses.gpl2Only; 34 platforms = platforms.linux; 35 }; 36}