2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, atk
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk-layer-shell
|
|
|
|
, gtk3
|
|
|
|
, pango
|
|
|
|
, python310Packages
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2024-04-21 15:54:59 +00:00
|
|
|
, hyprlandSupport ? true
|
2023-08-22 20:05:09 +00:00
|
|
|
, wlr-randr
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python310Packages.buildPythonApplication rec {
|
|
|
|
pname = "nwg-displays";
|
2024-10-09 16:51:18 +00:00
|
|
|
version = "0.3.22";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nwg-piotr";
|
|
|
|
repo = "nwg-displays";
|
2024-01-25 14:12:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-09 16:51:18 +00:00
|
|
|
hash = "sha256-lTFei4NR8eu5/5V9MEc/k6qQYRRZkQ5m6B7Bx9xIS6c=";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2023-08-04 22:07:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
postInstall = ''
|
|
|
|
install -Dm444 nwg-displays.svg -t $out/share/icons/hicolor/scalable/apps
|
|
|
|
install -Dm444 nwg-displays.desktop -t $out/share/applications
|
|
|
|
'';
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|