5 , gobject-introspection
11 , hyprlandSupport ? true
15 python310Packages.buildPythonApplication rec {
16 pname = "nwg-displays";
19 src = fetchFromGitHub {
21 repo = "nwg-displays";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-rnaBYDGEsc8oGw4yZ60NQFbNf+L0tmHYDYf+UDoDmSI=";
35 propagatedBuildInputs = [
40 python310Packages.gst-python
41 python310Packages.i3ipc
42 python310Packages.pygobject3
43 ] ++ lib.optionals hyprlandSupport [
50 install -Dm444 nwg-displays.svg -t $out/share/icons/hicolor/scalable/apps
51 install -Dm444 nwg-displays.desktop -t $out/share/applications
55 makeWrapperArgs+=("''${gappsWrapperArgs[@]}");
58 # Upstream has no tests
62 homepage = "https://github.com/nwg-piotr/nwg-displays";
63 description = "Output management utility for Sway and Hyprland";
64 license = lib.licenses.mit;
65 platforms = lib.platforms.linux;
67 mainProgram = "nwg-displays";