2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, atk
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk-layer-shell
|
|
|
|
, gtk3
|
|
|
|
, pango
|
|
|
|
, python310Packages
|
|
|
|
, wrapGAppsHook
|
2023-08-22 20:05:09 +00:00
|
|
|
, hyprlandSupport ? false
|
|
|
|
, wlr-randr
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
2023-08-22 20:05:09 +00:00
|
|
|
] ++ lib.optionals hyprlandSupport [
|
|
|
|
wlr-randr
|
2023-08-04 22:07:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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 = [ ];
|
|
|
|
mainProgram = "nwg-displays";
|
|
|
|
};
|
|
|
|
}
|