2023-02-02 18:25:31 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
2023-11-16 04:20:00 +00:00
|
|
|
, gitUpdater
|
2023-02-02 18:25:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.2.4";
|
2023-02-02 18:25:31 +00:00
|
|
|
pname = "nqptp";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mikebrady";
|
|
|
|
repo = pname;
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-roTNcr3v2kzE6vQ5plAVtlw1+2yJplltOYsGGibtoZo=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
patches = [
|
|
|
|
# this patch should be removed when > 1.2.4
|
|
|
|
./remove-setcap.patch
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
ignoredVersions = ".*(-dev|d0)";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2023-02-02 18:25:31 +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-11-16 04:20:00 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
mainProgram = "nqptp";
|
|
|
|
maintainers = with lib.maintainers; [ jordanisaacs adamcstephens ];
|
|
|
|
platforms = lib.platforms.linux ++ lib.platforms.freebsd;
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
}
|