2020-04-24 23:36:52 +00:00
|
|
|
{
|
2020-07-18 16:06:22 +00:00
|
|
|
mkDerivation, fetchpatch,
|
2020-04-24 23:36:52 +00:00
|
|
|
extra-cmake-modules, kdoctools,
|
|
|
|
bluez-qt, kactivities, kauth, kconfig, kdbusaddons, kdelibs4support,
|
|
|
|
kglobalaccel, ki18n, kidletime, kio, knotifyconfig, kwayland, libkscreen,
|
2020-05-29 06:06:01 +00:00
|
|
|
ddcutil, networkmanager-qt, plasma-workspace, qtx11extras, solid, udev
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation {
|
|
|
|
name = "powerdevil";
|
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
|
|
|
buildInputs = [
|
|
|
|
kconfig kdbusaddons knotifyconfig solid udev bluez-qt kactivities kauth
|
|
|
|
kdelibs4support kglobalaccel ki18n kio kidletime kwayland libkscreen
|
|
|
|
networkmanager-qt plasma-workspace qtx11extras
|
2020-05-29 06:06:01 +00:00
|
|
|
ddcutil
|
|
|
|
];
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DHAVE_DDCUTIL=On"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2020-07-18 16:06:22 +00:00
|
|
|
patches = [
|
2020-09-25 04:45:31 +00:00
|
|
|
# Reduce log message spam by setting the default log level to Warning.
|
2020-12-25 13:55:36 +00:00
|
|
|
#(fetchpatch {
|
|
|
|
# url = "https://invent.kde.org/plasma/powerdevil/-/commit/c7590f9065ec9547b7fabad77a548bbc0c693113.patch";
|
|
|
|
# sha256 = "077whhi0jrb3bajx357k7n66hv7nchis8jix0nfc1zjvi9fm6pi2";
|
|
|
|
#})
|
2020-07-18 16:06:22 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|