rtkit: 0.11 -> 0.13
This commit is contained in:
parent
363004c7eb
commit
f9ac494891
@ -1,44 +1,46 @@
|
|||||||
{ stdenv, fetchurl, fetchpatch, pkgconfig, dbus, libcap }:
|
{ stdenv, fetchFromGitHub, fetchpatch
|
||||||
|
, meson, ninja, pkgconfig, unixtools
|
||||||
|
, dbus, libcap, polkit, systemd
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "rtkit";
|
pname = "rtkit";
|
||||||
version = "0.11";
|
version = "0.13";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "http://0pointer.de/public/${name}.tar.xz";
|
owner = "heftig";
|
||||||
sha256 = "1l5cb1gp6wgpc9vq6sx021qs6zb0nxg3cn1ba00hjhgnrw4931b8";
|
repo = "rtkit";
|
||||||
|
rev = "c295fa849f52b487be6433e69e08b46251950399";
|
||||||
|
sha256 = "0yfsgi3pvg6dkizrww1jxpkvcbhzyw9110n1dypmzq0c5hlzjxcd";
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = [
|
|
||||||
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
|
||||||
];
|
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# Drop removed ControlGroup stanza
|
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
url = "http://git.0pointer.net/rtkit.git/patch/?id=6c28e20c0be2f616a025059fda0ffac84e7f4f17";
|
url = "https://github.com/heftig/rtkit/commit/7d62095b94f8df3891c984a1535026d2658bb177.patch";
|
||||||
sha256 = "0lsxk5nv08i1wjb4xh20i5fcwg3x0qq0k4f8bc0r9cczph2sv7ck";
|
sha256 = "17acv549zqcgh7sgprfagbf6drqsr0zdwvf1dsqda7wlqc2h9zn7";
|
||||||
})
|
})
|
||||||
|
|
||||||
# security patch: Pass uid of caller to polkit
|
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
url = "http://git.0pointer.net/rtkit.git/patch/?id=88d4082ef6caf6b071d749dca1c50e7edde914cc";
|
url = "https://github.com/heftig/rtkit/commit/98f70edd8f534c371cb4308b9720739c5178918d.patch";
|
||||||
sha256 = "0hp1blbi359qz8fmr6nj4w9yc0jf3dd176f8pn25wdj38n13qkix";
|
sha256 = "18mnjjsdjfr184nkzi01xyphpdngi31ry4bmkv9ysjxf9wilv4nl";
|
||||||
})
|
|
||||||
|
|
||||||
# Fix format string errors due to -Werror=format-security
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://sources.debian.org/data/main/r/rtkit/0.11-6/debian/patches/0006-fix-format-strings.patch";
|
|
||||||
sha256 = "09mr89lh16jvz6cqw00zmh0xk919bjfhjkvna1czwmafwy9p7kgp";
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ meson ninja pkgconfig unixtools.xxd ];
|
||||||
buildInputs = [ dbus libcap ];
|
buildInputs = [ dbus libcap polkit systemd ];
|
||||||
NIX_LDFLAGS = "-lrt";
|
|
||||||
|
mesonFlags = [
|
||||||
|
"-Dinstalled_tests=false"
|
||||||
|
|
||||||
|
"-Ddbus_systemservicedir=${placeholder "out"}/share/dbus-1/system-services"
|
||||||
|
"-Ddbus_interfacedir=${placeholder "out"}/share/dbus-1/interfaces"
|
||||||
|
"-Ddbus_rulesdir=${placeholder "out"}/etc/dbus-1/system.d"
|
||||||
|
"-Dpolkit_actiondir=${placeholder "out"}/share/polkit-1/actions"
|
||||||
|
"-Dsystemd_systemunitdir=${placeholder "out"}/etc/systemd/system"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "http://0pointer.de/blog/projects/rtkit";
|
homepage = "https://github.com/heftig/rtkit";
|
||||||
description = "A daemon that hands out real-time priority to processes";
|
description = "A daemon that hands out real-time priority to processes";
|
||||||
license = with licenses; [ gpl3 bsd0 ]; # lib is bsd license
|
license = with licenses; [ gpl3 bsd0 ]; # lib is bsd license
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user