depot/third_party/nixpkgs/pkgs/os-specific/linux/linuxptp/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

33 lines
821 B
Nix

{ lib, stdenv, fetchurl, linuxHeaders } :
stdenv.mkDerivation rec {
pname = "linuxptp";
version = "4.1";
src = fetchurl {
url = "mirror://sourceforge/linuxptp/${pname}-${version}.tgz";
hash = "sha256-4XQ9RPggiJfjCJXaNXnmcP+Rm5FP60talJ8+Qh3d5TU=";
};
postPatch = ''
substituteInPlace incdefs.sh --replace \
'/usr/include/linux/' "${linuxHeaders}/include/linux/"
'';
makeFlags = [ "prefix=" ];
preInstall = ''
export DESTDIR=$out
'';
enableParallelBuilding = true;
meta = with lib; {
description = "Implementation of the Precision Time Protocol (PTP) according to IEEE standard 1588 for Linux";
homepage = "https://linuxptp.sourceforge.net/";
maintainers = [ maintainers.markuskowa ];
license = licenses.gpl2Only;
platforms = platforms.linux;
};
}