2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, extra-cmake-modules
|
|
|
|
, kdoctools
|
|
|
|
, kcmutils
|
|
|
|
, kconfig
|
|
|
|
, kdesu
|
|
|
|
, ki18n
|
|
|
|
, kiconthemes
|
|
|
|
, kinit
|
|
|
|
, kio
|
|
|
|
, kwindowsystem
|
|
|
|
, qtsvg
|
|
|
|
, qtx11extras
|
|
|
|
, kactivities
|
|
|
|
, plasma-workspace
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation {
|
2022-03-10 19:12:11 +00:00
|
|
|
pname = "kde-cli-tools";
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
|
|
|
buildInputs = [
|
2022-10-21 18:38:19 +00:00
|
|
|
kcmutils
|
|
|
|
kconfig
|
|
|
|
kdesu
|
|
|
|
ki18n
|
|
|
|
kiconthemes
|
|
|
|
kinit
|
|
|
|
kio
|
|
|
|
kwindowsystem
|
|
|
|
qtsvg
|
|
|
|
qtx11extras
|
|
|
|
kactivities
|
|
|
|
plasma-workspace
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2020-09-25 04:45:31 +00: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
|
|
|
|
'';
|
|
|
|
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
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|