about summary refs log tree commit diff
path: root/pkgs/applications/misc/syncthingtray
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2023-07-29 23:30:04 +0300
committerK900 <me@0upti.me>2023-07-30 09:36:32 +0300
commita8e308bff1b34c00808eb1e8b0a194c5ade2cd0d (patch)
treeedc16901d16e4881f619345a453c6d23aff8718b /pkgs/applications/misc/syncthingtray
parent8767f7a362169ee96715b6953c6a78623d682636 (diff)
syncthingtray: build as a shared library, small cleanup
This makes the plasmoid actually work.
Diffstat (limited to 'pkgs/applications/misc/syncthingtray')
-rw-r--r--pkgs/applications/misc/syncthingtray/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/misc/syncthingtray/default.nix b/pkgs/applications/misc/syncthingtray/default.nix
index 96e77baf30251..65c80cc81f1cf 100644
--- a/pkgs/applications/misc/syncthingtray/default.nix
+++ b/pkgs/applications/misc/syncthingtray/default.nix
@@ -70,7 +70,8 @@ mkDerivation rec {
   cmakeFlags = [
     "-DAUTOSTART_EXEC_PATH=${autostartExecPath}"
     # See https://github.com/Martchus/syncthingtray/issues/42
-    "-DQT_PLUGIN_DIR:STRING=${placeholder "out"}/lib/qt-5"
+    "-DQT_PLUGIN_DIR:STRING=${placeholder "out"}/${qtbase.qtPluginPrefix}"
+    "-DBUILD_SHARED_LIBS=ON"
   ] ++ lib.optionals (!plasmoidSupport) ["-DNO_PLASMOID=ON"]
     ++ lib.optionals (!kioPluginSupport) ["-DNO_FILE_ITEM_ACTION_PLUGIN=ON"]
     ++ lib.optionals systemdSupport ["-DSYSTEMD_SUPPORT=ON"]