about summary refs log tree commit diff
path: root/pkgs/applications/misc/solaar
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2021-10-04 22:16:53 +0300
committerArtturin <Artturin@artturin.com>2021-10-04 22:16:53 +0300
commitb533f012ed55810268b4c71a38ecbb77e78cd9f5 (patch)
treec7b9c81d001d19c427d558d94f1917c97f73cc45 /pkgs/applications/misc/solaar
parentbc4e52b69745d86e6eecb52b3d0ff9683cbeadf4 (diff)
solaar: add support for tray icon
fix https://github.com/NixOS/nixpkgs/issues/118622
Diffstat (limited to 'pkgs/applications/misc/solaar')
-rw-r--r--pkgs/applications/misc/solaar/default.nix19
1 files changed, 13 insertions, 6 deletions
diff --git a/pkgs/applications/misc/solaar/default.nix b/pkgs/applications/misc/solaar/default.nix
index b6059ac1a71b1..641353f53dafe 100644
--- a/pkgs/applications/misc/solaar/default.nix
+++ b/pkgs/applications/misc/solaar/default.nix
@@ -1,4 +1,13 @@
-{ fetchFromGitHub, lib, gobject-introspection, gtk3, python3Packages }:
+{ fetchFromGitHub
+, lib
+, gobject-introspection
+, gtk3
+, python3Packages
+, wrapGAppsHook
+, gdk-pixbuf
+, libappindicator
+, librsvg
+}:
 
 # Although we copy in the udev rules here, you probably just want to use
 # logitech-udev-rules instead of adding this to services.udev.packages on NixOS
@@ -13,6 +22,9 @@ python3Packages.buildPythonApplication rec {
     sha256 = "sha256-Ys0005hIQ+fT4oMeU5iFtbLNqn1WM6iLdIKGwdyn7BM=";
   };
 
+  nativeBuildInputs = [ wrapGAppsHook gdk-pixbuf ];
+  buildInputs = [ libappindicator librsvg ];
+
   propagatedBuildInputs = with python3Packages; [
     gobject-introspection
     gtk3
@@ -23,11 +35,6 @@ python3Packages.buildPythonApplication rec {
     xlib
   ];
 
-  makeWrapperArgs = [
-    "--prefix PYTHONPATH : $PYTHONPATH"
-    "--prefix GI_TYPELIB_PATH : $GI_TYPELIB_PATH"
-  ];
-
   # the -cli symlink is just to maintain compabilility with older versions where
   # there was a difference between the GUI and CLI versions.
   postInstall = ''