Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 40 lines 919 B view raw
1{ lib, stdenv, fetchFromGitHub, linuxHeaders } : 2 3 4stdenv.mkDerivation rec { 5 pname = "linuxptp"; 6 version = "4.3"; 7 8 src = fetchFromGitHub { 9 owner = "nwtime"; 10 repo = "linuxptp"; 11 rev = "v${version}"; 12 hash = "sha256-FFBbbmVPP74p/OkqNXXgynBS/NcuPoYs3OCof11NZOI="; 13 }; 14 15 outputs = [ "out" "man" ]; 16 17 postPatch = '' 18 substituteInPlace incdefs.sh --replace-fail \ 19 '/usr/include/linux/' "${linuxHeaders}/include/linux/" 20 ''; 21 22 makeFlags = [ 23 "prefix=" 24 "CROSS_COMPILE=${stdenv.cc.targetPrefix}" 25 ]; 26 27 preInstall = '' 28 export DESTDIR=$out 29 ''; 30 31 enableParallelBuilding = true; 32 33 meta = with lib; { 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; 39 }; 40}