mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
34 lines
821 B
Nix
34 lines
821 B
Nix
{ lib, stdenv, fetchurl, linuxHeaders } :
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "linuxptp";
|
|
version = "4.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/linuxptp/${pname}-${version}.tgz";
|
|
hash = "sha256-0n1e8pa7PSheIuafda4CO0tCovRlUTDW05DYr8vD2TM=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|