mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
74 lines
1.8 KiB
Nix
74 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
unixtools,
|
|
dbus,
|
|
libcap,
|
|
polkit,
|
|
systemdLibs,
|
|
fetchpatch,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "rtkit";
|
|
version = "0.14";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.freedesktop.org";
|
|
owner = "pipewire";
|
|
repo = "rtkit";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-y952SHbUWIjg1BKqenHABVWm0S5d/sBac1zRp9BpXB8=";
|
|
};
|
|
|
|
patches = [
|
|
# Let us override the `sysusersdir` path
|
|
(fetchpatch {
|
|
url = "https://gitlab.freedesktop.org/pipewire/rtkit/-/commit/621fdc3f2c037781dc279760cfbff64974fdbe77.patch";
|
|
hash = "sha256-Ffdi6dfZmdBpClpJkPNISmEoeUkIufrObz5g7RSPqLw=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
unixtools.xxd
|
|
];
|
|
|
|
buildInputs = [
|
|
dbus
|
|
libcap
|
|
polkit
|
|
systemdLibs
|
|
];
|
|
|
|
mesonFlags = [
|
|
(lib.mesonBool "installed_tests" false)
|
|
(lib.mesonOption "dbus_systemservicedir" "${placeholder "out"}/share/dbus-1/system-services")
|
|
(lib.mesonOption "dbus_interfacedir" "${placeholder "out"}/share/dbus-1/interfaces")
|
|
(lib.mesonOption "dbus_rulesdir" "${placeholder "out"}/etc/dbus-1/system.d")
|
|
(lib.mesonOption "polkit_actiondir" "${placeholder "out"}/share/polkit-1/actions")
|
|
(lib.mesonOption "systemd_systemunitdir" "${placeholder "out"}/etc/systemd/system")
|
|
(lib.mesonOption "systemd_sysusersdir" "${placeholder "out"}/lib/sysusers.d")
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
homepage = "https://gitlab.freedesktop.org/pipewire/rtkit";
|
|
description = "Daemon that hands out real-time priority to processes";
|
|
mainProgram = "rtkitctl";
|
|
license = with lib.licenses; [
|
|
gpl3Plus
|
|
mit
|
|
];
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ lib.maintainers.Gliczy ];
|
|
};
|
|
})
|