plasma-desktop: pass path to hwclock through preprocessor macro
This commit is contained in:
parent
86dac81a70
commit
a4be1a68f8
@ -32,7 +32,10 @@ mkDerivation rec {
|
|||||||
|
|
||||||
sed '1i#include <cmath>' -i kcms/touchpad/src/backends/x11/synapticstouchpad.cpp
|
sed '1i#include <cmath>' -i kcms/touchpad/src/backends/x11/synapticstouchpad.cpp
|
||||||
'';
|
'';
|
||||||
NIX_CFLAGS_COMPILE = [ "-I${xorgserver.dev}/include/xorg" ];
|
NIX_CFLAGS_COMPILE = [
|
||||||
|
"-I${lib.getDev xorgserver}/include/xorg"
|
||||||
|
''-DNIXPKGS_HWCLOCK="${lib.getBin utillinux}/sbin/hwclock"''
|
||||||
|
];
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DEvdev_INCLUDE_DIRS=${xf86inputevdev.dev}/include/xorg"
|
"-DEvdev_INCLUDE_DIRS=${xf86inputevdev.dev}/include/xorg"
|
||||||
"-DSynaptics_INCLUDE_DIRS=${xf86inputsynaptics.dev}/include/xorg"
|
"-DSynaptics_INCLUDE_DIRS=${xf86inputsynaptics.dev}/include/xorg"
|
||||||
|
@ -18,7 +18,7 @@ Index: plasma-desktop-5.8.5/kcms/dateandtime/helper.cpp
|
|||||||
void ClockHelper::toHwclock()
|
void ClockHelper::toHwclock()
|
||||||
{
|
{
|
||||||
- QString hwclock = KStandardDirs::findExe(QStringLiteral("hwclock"), exePath);
|
- QString hwclock = KStandardDirs::findExe(QStringLiteral("hwclock"), exePath);
|
||||||
+ QString hwclock = "@hwclock@";
|
+ QString hwclock = QLatin1String(NIXPKGS_HWCLOCK);
|
||||||
if (!hwclock.isEmpty()) {
|
if (!hwclock.isEmpty()) {
|
||||||
KProcess::execute(hwclock, QStringList() << QStringLiteral("--systohc"));
|
KProcess::execute(hwclock, QStringList() << QStringLiteral("--systohc"));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user