about summary refs log tree commit diff
path: root/pkgs/desktops/plasma-5/bluedevil.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/desktops/plasma-5/bluedevil.nix')
-rw-r--r--pkgs/desktops/plasma-5/bluedevil.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/desktops/plasma-5/bluedevil.nix b/pkgs/desktops/plasma-5/bluedevil.nix
new file mode 100644
index 0000000000000..1deef241a62fe
--- /dev/null
+++ b/pkgs/desktops/plasma-5/bluedevil.nix
@@ -0,0 +1,19 @@
+{
+  plasmaPackage, ecm, shared_mime_info,
+  bluez-qt, kcoreaddons, kdbusaddons, kded, ki18n, kiconthemes, kio,
+  knotifications, kwidgetsaddons, kwindowsystem, plasma-framework, qtdeclarative
+}:
+
+plasmaPackage {
+  name = "bluedevil";
+  nativeBuildInputs = [ ecm shared_mime_info ];
+  propagatedBuildInputs = [
+    bluez-qt ki18n kio kwindowsystem plasma-framework qtdeclarative kcoreaddons
+    kdbusaddons kded kiconthemes knotifications kwidgetsaddons
+  ];
+  propagatedUserEnvPkgs = [ bluez-qt.out ];
+  postInstall = ''
+    # Fix the location of logic.js for the plasmoid
+    ln -s $out/share/plasma/plasmoids/org.kde.plasma.bluetooth/contents/code/logic.js $out/share/plasma/plasmoids/org.kde.plasma.bluetooth/contents/ui/logic.js
+  '';
+}