nixpkgs/pkgs/os-specific/linux/linuxptp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
873 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, linuxHeaders } :
2019-06-24 12:48:05 +01:00
stdenv.mkDerivation rec {
pname = "linuxptp";
2023-12-22 04:55:25 +00:00
version = "4.2";
2019-06-24 12:48:05 +01:00
src = fetchurl {
url = "mirror://sourceforge/linuxptp/${pname}-${version}.tgz";
2023-12-22 04:55:25 +00:00
hash = "sha256-cOOOXSdk4CF0Q9pvFOiEb+QBpHIpOsE42EGcB6ZlRHo=";
2019-06-24 12:48:05 +01:00
};
postPatch = ''
substituteInPlace incdefs.sh --replace \
'/usr/include/linux/' "${linuxHeaders}/include/linux/"
'';
makeFlags = [
"prefix="
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
];
2019-06-24 12:48:05 +01:00
preInstall = ''
export DESTDIR=$out
'';
enableParallelBuilding = true;
meta = with lib; {
2019-06-24 12:48:05 +01:00
description = "Implementation of the Precision Time Protocol (PTP) according to IEEE standard 1588 for Linux";
homepage = "https://linuxptp.sourceforge.net/";
2019-06-24 12:48:05 +01:00
maintainers = [ maintainers.markuskowa ];
2021-02-01 12:36:34 +00:00
license = licenses.gpl2Only;
2019-06-24 12:48:05 +01:00
platforms = platforms.linux;
};
}