mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 08:28:20 +00:00
fixes log clutter: systemd[1]: [/nix/store/....-rtkit-0.11/etc/systemd/system/rtkit-daemon.service:32] Unknown lvalue 'ControlGroup' in section 'Service'
30 lines
881 B
Nix
30 lines
881 B
Nix
{ stdenv, fetchurl, fetchpatch, pkgconfig, dbus, libcap }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "rtkit-0.11";
|
|
|
|
src = fetchurl {
|
|
url = "http://0pointer.de/public/${name}.tar.xz";
|
|
sha256 = "1l5cb1gp6wgpc9vq6sx021qs6zb0nxg3cn1ba00hjhgnrw4931b8";
|
|
};
|
|
|
|
configureFlags = [
|
|
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
|
];
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://anonscm.debian.org/cgit/pkg-multimedia/rtkit.git/plain/debian/patches/0002-Drop-Removed-ControlGroup-stanza.patch?id=21f2c6be6985c777cbf113c67043353406744050";
|
|
sha256 = "0lsxk5nv08i1wjb4xh20i5fcwg3x0qq0k4f8bc0r9cczph2sv7ck";
|
|
})
|
|
];
|
|
|
|
buildInputs = [ pkgconfig dbus libcap ];
|
|
|
|
meta = {
|
|
homepage = http://0pointer.de/blog/projects/rtkit;
|
|
descriptions = "A daemon that hands out real-time priority to processes";
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|