2022-10-07 12:39:27 +02:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, extra-cmake-modules
|
|
|
|
, kdoctools
|
|
|
|
, kcmutils
|
|
|
|
, kconfig
|
|
|
|
, kdesu
|
|
|
|
, ki18n
|
|
|
|
, kiconthemes
|
|
|
|
, kinit
|
|
|
|
, kio
|
|
|
|
, kwindowsystem
|
|
|
|
, qtsvg
|
|
|
|
, qtx11extras
|
|
|
|
, kactivities
|
|
|
|
, plasma-workspace
|
2016-04-21 18:01:22 +02:00
|
|
|
}:
|
|
|
|
|
2017-05-15 18:44:58 +02:00
|
|
|
mkDerivation {
|
2022-03-06 22:28:56 +01:00
|
|
|
pname = "kde-cli-tools";
|
2017-02-26 13:49:15 +01:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
2017-05-22 20:49:07 +02:00
|
|
|
buildInputs = [
|
2022-10-07 12:39:27 +02:00
|
|
|
kcmutils
|
|
|
|
kconfig
|
|
|
|
kdesu
|
|
|
|
ki18n
|
|
|
|
kiconthemes
|
|
|
|
kinit
|
|
|
|
kio
|
|
|
|
kwindowsystem
|
|
|
|
qtsvg
|
|
|
|
qtx11extras
|
|
|
|
kactivities
|
|
|
|
plasma-workspace
|
2016-04-21 18:01:22 +02:00
|
|
|
];
|
2020-08-20 23:21:24 +02:00
|
|
|
postInstall = ''
|
|
|
|
# install a symlink in bin so that kdesu can eventually be found in PATH
|
|
|
|
mkdir -p $out/bin
|
|
|
|
ln -s $out/libexec/kf5/kdesu $out/bin
|
|
|
|
'';
|
2020-07-16 23:32:13 +02:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
preFixup = ''
|
|
|
|
for program in $out/bin/*; do
|
|
|
|
wrapQtApp $program
|
|
|
|
done
|
|
|
|
|
|
|
|
# kdesu looks for kdeinit5 in PATH
|
|
|
|
wrapQtApp $out/libexec/kf5/kdesu --suffix PATH : ${lib.getBin kinit}/bin
|
|
|
|
'';
|
2016-04-21 18:01:22 +02:00
|
|
|
}
|