diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-08-03 08:44:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-03 08:44:50 +0200 |
commit | 754d28198c39ee95d207afc89001b9cfdeb85d8d (patch) | |
tree | 0cc01d6ca91bb736e1bca57e55f77c8b12b5e5ac /pkgs/applications/misc | |
parent | 13c5b2fca9a74497a50c90837452e0cf2210358d (diff) | |
parent | 662712806f997ead0176b3f797c2fb00ed9e35c6 (diff) |
Merge pull request #246788 from khaneliman/nwg-displays
nwg-displays: init at 0.3.7
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/nwg-displays/default.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/applications/misc/nwg-displays/default.nix b/pkgs/applications/misc/nwg-displays/default.nix new file mode 100644 index 0000000000000..56691d3ce14a3 --- /dev/null +++ b/pkgs/applications/misc/nwg-displays/default.nix @@ -0,0 +1,59 @@ +{ lib +, fetchFromGitHub +, atk +, gdk-pixbuf +, gobject-introspection +, gtk-layer-shell +, gtk3 +, pango +, python310Packages +, wrapGAppsHook +}: + +python310Packages.buildPythonApplication rec { + pname = "nwg-displays"; + version = "0.3.7"; + + src = fetchFromGitHub { + owner = "nwg-piotr"; + repo = "nwg-displays"; + rev = "v${version}"; + hash = "sha256-Y405ZeOSpc1aPKEzFdvlgJgpGAi9HUR+Hvx63uYdp88="; + }; + + nativeBuildInputs = [ + gobject-introspection + wrapGAppsHook + ]; + + buildInputs = [ + gtk3 + ]; + + propagatedBuildInputs = [ + atk + gdk-pixbuf + gtk-layer-shell + pango + python310Packages.gst-python + python310Packages.i3ipc + python310Packages.pygobject3 + ]; + + dontWrapGApps = true; + + preFixup = '' + makeWrapperArgs+=("''${gappsWrapperArgs[@]}"); + ''; + + # Upstream has no tests + doCheck = false; + + meta = { + homepage = "https://github.com/nwg-piotr/nwg-displays"; + description = "Output management utility for Sway and Hyprland"; + license = lib.licenses.mit; + platforms = lib.platforms.linux; + maintainers = [ ]; + }; +} |