2016-07-17 20:42:41 +00:00
|
|
|
{
|
2020-07-16 21:32:13 +00:00
|
|
|
lib, mkDerivation, extra-cmake-modules, kdoctools,
|
2017-05-22 18:49:07 +00:00
|
|
|
kcmutils, kconfig, kdesu, ki18n, kiconthemes, kinit, kio, kwindowsystem,
|
2018-05-21 20:59:37 +00:00
|
|
|
qtsvg, qtx11extras, kactivities, plasma-workspace
|
2016-04-21 16:01:22 +00:00
|
|
|
}:
|
|
|
|
|
2017-05-15 16:44:58 +00:00
|
|
|
mkDerivation {
|
2016-04-21 16:01:22 +00:00
|
|
|
name = "kde-cli-tools";
|
2017-02-26 12:49:15 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
2017-05-22 18:49:07 +00:00
|
|
|
buildInputs = [
|
|
|
|
kcmutils kconfig kdesu ki18n kiconthemes kinit kio kwindowsystem qtsvg
|
2018-05-21 20:59:37 +00:00
|
|
|
qtx11extras kactivities plasma-workspace
|
2016-04-21 16:01:22 +00:00
|
|
|
];
|
2020-08-20 21:21:24 +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
|
|
|
|
'';
|
2020-07-16 21:32:13 +00: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 16:01:22 +00:00
|
|
|
}
|