Files
nixpkgs/pkgs/by-name/nq/nqptp/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

53 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
gitUpdater,
}:
stdenv.mkDerivation rec {
version = "1.2.4";
pname = "nqptp";
src = fetchFromGitHub {
owner = "mikebrady";
repo = "nqptp";
tag = version;
hash = "sha256-roTNcr3v2kzE6vQ5plAVtlw1+2yJplltOYsGGibtoZo=";
};
patches = [
# these patches should be removed when > 1.2.4
./remove-setcap.patch
./systemd-service-capability.patch
];
nativeBuildInputs = [
autoreconfHook
pkg-config
];
passthru.updateScript = gitUpdater {
ignoredVersions = ".*(-dev|d0)";
};
postInstall = ''
mkdir -p $out/lib/systemd/system
cp nqptp.service $out/lib/systemd/system
'';
meta = {
homepage = "https://github.com/mikebrady/nqptp";
description = "Daemon and companion application to Shairport Sync that monitors timing data from any PTP clocks";
license = lib.licenses.gpl2Only;
mainProgram = "nqptp";
maintainers = with lib.maintainers; [
jordanisaacs
adamcstephens
];
platforms = lib.platforms.linux ++ lib.platforms.freebsd;
};
}