3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/plasma-5/kde-cli-tools.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
828 B
Nix
Raw Normal View History

2016-07-17 21:42:41 +01:00
{
lib, mkDerivation, extra-cmake-modules, kdoctools,
kcmutils, kconfig, kdesu, ki18n, kiconthemes, kinit, kio, kwindowsystem,
2018-05-21 21:59:37 +01:00
qtsvg, qtx11extras, kactivities, plasma-workspace
2016-04-21 17:01:22 +01:00
}:
mkDerivation {
2022-03-06 21:28:56 +00:00
pname = "kde-cli-tools";
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
buildInputs = [
kcmutils kconfig kdesu ki18n kiconthemes kinit kio kwindowsystem qtsvg
2018-05-21 21:59:37 +01:00
qtx11extras kactivities plasma-workspace
2016-04-21 17:01:22 +01: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
'';
2016-04-21 17:01:22 +01:00
}