2022-12-01 03:46:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
2023-10-19 14:10:28 +00:00
|
|
|
, gitUpdater
|
2022-12-01 03:46:40 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-10-19 14:10:28 +00:00
|
|
|
version = "1.2.4";
|
2022-12-01 03:46:40 +00:00
|
|
|
pname = "nqptp";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mikebrady";
|
|
|
|
repo = pname;
|
2023-05-22 13:33:51 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-10-19 14:10:28 +00:00
|
|
|
hash = "sha256-roTNcr3v2kzE6vQ5plAVtlw1+2yJplltOYsGGibtoZo=";
|
2022-12-01 03:46:40 +00:00
|
|
|
};
|
|
|
|
|
2023-10-19 14:10:28 +00:00
|
|
|
patches = [
|
|
|
|
# this patch should be removed when > 1.2.4
|
|
|
|
./remove-setcap.patch
|
|
|
|
];
|
|
|
|
|
2022-12-01 03:46:40 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
|
|
|
2023-10-19 14:10:28 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
ignoredVersions = ".*(-dev|d0)";
|
|
|
|
};
|
|
|
|
|
2023-10-19 14:09:57 +00:00
|
|
|
meta = {
|
2022-12-01 03:46:40 +00:00
|
|
|
homepage = "https://github.com/mikebrady/nqptp";
|
|
|
|
description = "Daemon and companion application to Shairport Sync that monitors timing data from any PTP clocks";
|
2023-10-19 14:09:57 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
2023-11-04 16:30:21 +00:00
|
|
|
mainProgram = "nqptp";
|
2023-10-19 14:09:57 +00:00
|
|
|
maintainers = with lib.maintainers; [ jordanisaacs adamcstephens ];
|
|
|
|
platforms = lib.platforms.linux ++ lib.platforms.freebsd;
|
2022-12-01 03:46:40 +00:00
|
|
|
};
|
|
|
|
}
|