2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch
|
2021-01-19 06:50:56 +00:00
|
|
|
, meson, ninja, pkg-config, unixtools
|
2020-04-11 21:09:25 +00:00
|
|
|
, dbus, libcap, polkit, systemd
|
|
|
|
}:
|
2011-07-26 14:12:33 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-04-11 20:21:39 +00:00
|
|
|
pname = "rtkit";
|
2020-04-11 21:09:25 +00:00
|
|
|
version = "0.13";
|
2016-10-05 08:48:57 +00:00
|
|
|
|
2020-04-11 21:09:25 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "heftig";
|
|
|
|
repo = "rtkit";
|
|
|
|
rev = "c295fa849f52b487be6433e69e08b46251950399";
|
|
|
|
sha256 = "0yfsgi3pvg6dkizrww1jxpkvcbhzyw9110n1dypmzq0c5hlzjxcd";
|
2011-07-26 14:12:33 +00:00
|
|
|
};
|
|
|
|
|
2016-10-05 08:48:57 +00:00
|
|
|
patches = [
|
2016-10-05 16:07:12 +00:00
|
|
|
(fetchpatch {
|
2020-04-11 21:09:25 +00:00
|
|
|
url = "https://github.com/heftig/rtkit/commit/7d62095b94f8df3891c984a1535026d2658bb177.patch";
|
|
|
|
sha256 = "17acv549zqcgh7sgprfagbf6drqsr0zdwvf1dsqda7wlqc2h9zn7";
|
2016-10-05 16:07:12 +00:00
|
|
|
})
|
2018-04-12 14:02:52 +00:00
|
|
|
|
|
|
|
(fetchpatch {
|
2020-04-11 21:09:25 +00:00
|
|
|
url = "https://github.com/heftig/rtkit/commit/98f70edd8f534c371cb4308b9720739c5178918d.patch";
|
|
|
|
sha256 = "18mnjjsdjfr184nkzi01xyphpdngi31ry4bmkv9ysjxf9wilv4nl";
|
2018-04-12 14:02:52 +00:00
|
|
|
})
|
2016-10-05 08:48:57 +00:00
|
|
|
];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config unixtools.xxd ];
|
2020-04-11 21:09:25 +00:00
|
|
|
buildInputs = [ dbus libcap polkit systemd ];
|
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
2014-04-18 10:21:20 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-11 21:09:25 +00:00
|
|
|
homepage = "https://github.com/heftig/rtkit";
|
2017-04-29 08:45:20 +00:00
|
|
|
description = "A daemon that hands out real-time priority to processes";
|
2018-08-30 19:54:56 +00:00
|
|
|
license = with licenses; [ gpl3 bsd0 ]; # lib is bsd license
|
|
|
|
platforms = platforms.linux;
|
2011-07-26 14:12:33 +00:00
|
|
|
};
|
|
|
|
}
|