at 18.09-beta 1.5 kB view raw
1{ stdenv, fetchurl, fetchpatch, pkgconfig, dbus, libcap }: 2 3stdenv.mkDerivation rec { 4 name = "rtkit-0.11"; 5 6 src = fetchurl { 7 url = "http://0pointer.de/public/${name}.tar.xz"; 8 sha256 = "1l5cb1gp6wgpc9vq6sx021qs6zb0nxg3cn1ba00hjhgnrw4931b8"; 9 }; 10 11 configureFlags = [ 12 "--with-systemdsystemunitdir=$(out)/etc/systemd/system" 13 ]; 14 15 patches = [ 16 # Drop removed ControlGroup stanza 17 (fetchpatch { 18 url = "http://git.0pointer.net/rtkit.git/patch/?id=6c28e20c0be2f616a025059fda0ffac84e7f4f17"; 19 sha256 = "0lsxk5nv08i1wjb4xh20i5fcwg3x0qq0k4f8bc0r9cczph2sv7ck"; 20 }) 21 22 # security patch: Pass uid of caller to polkit 23 (fetchpatch { 24 url = "http://git.0pointer.net/rtkit.git/patch/?id=88d4082ef6caf6b071d749dca1c50e7edde914cc"; 25 sha256 = "0hp1blbi359qz8fmr6nj4w9yc0jf3dd176f8pn25wdj38n13qkix"; 26 }) 27 28 # Fix format string errors due to -Werror=format-security 29 (fetchpatch { 30 url = "https://sources.debian.org/data/main/r/rtkit/0.11-6/debian/patches/0006-fix-format-strings.patch"; 31 sha256 = "09mr89lh16jvz6cqw00zmh0xk919bjfhjkvna1czwmafwy9p7kgp"; 32 }) 33 ]; 34 35 nativeBuildInputs = [ pkgconfig ]; 36 buildInputs = [ dbus libcap ]; 37 38 meta = with stdenv.lib; { 39 homepage = http://0pointer.de/blog/projects/rtkit; 40 description = "A daemon that hands out real-time priority to processes"; 41 license = with licenses; [ gpl3 bsd0 ]; # lib is bsd license 42 platforms = platforms.linux; 43 }; 44}