summary refs log tree commit diff
path: root/pkgs/desktops/kde-5/plasma-5.5/kscreen.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/desktops/kde-5/plasma-5.5/kscreen.nix')
-rw-r--r--pkgs/desktops/kde-5/plasma-5.5/kscreen.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/desktops/kde-5/plasma-5.5/kscreen.nix b/pkgs/desktops/kde-5/plasma-5.5/kscreen.nix
new file mode 100644
index 000000000000..2cfd0df2e1d3
--- /dev/null
+++ b/pkgs/desktops/kde-5/plasma-5.5/kscreen.nix
@@ -0,0 +1,34 @@
+{ plasmaPackage, extra-cmake-modules, kconfig, kconfigwidgets
+, kdbusaddons, kglobalaccel, ki18n, kwidgetsaddons, kxmlgui
+, libkscreen, makeQtWrapper, qtdeclarative, qtgraphicaleffects
+}:
+
+plasmaPackage {
+  name = "kscreen";
+  nativeBuildInputs = [
+    extra-cmake-modules
+    makeQtWrapper
+  ];
+  buildInputs = [
+    kconfig
+    kconfigwidgets
+    kdbusaddons
+    kwidgetsaddons
+    kxmlgui
+  ];
+  propagatedBuildInputs = [
+    kglobalaccel
+    ki18n
+    libkscreen
+    qtdeclarative
+    qtgraphicaleffects
+  ];
+  propagatedUserEnvPkgs = [
+    libkscreen  # D-Bus service
+    qtdeclarative  # QML import
+    qtgraphicaleffects  # QML import
+  ];
+  postInstall = ''
+    wrapQtProgram "$out/bin/kscreen-console"
+  '';
+}