Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

73 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2023-08-02 08:57:07 -05:00
{
lib,
fetchFromGitHub,
atk,
gdk-pixbuf,
gobject-introspection,
gtk-layer-shell,
gtk3,
pango,
python3Packages,
wrapGAppsHook3,
hyprlandSupport ? true,
2023-08-10 02:21:17 +03:00
wlr-randr,
2023-08-02 08:57:07 -05:00
}:
python3Packages.buildPythonApplication rec {
2023-08-02 08:57:07 -05:00
pname = "nwg-displays";
2025-03-29 15:28:33 +00:00
version = "0.3.25";
format = "setuptools";
2023-08-02 08:57:07 -05:00
src = fetchFromGitHub {
owner = "nwg-piotr";
repo = "nwg-displays";
tag = "v${version}";
2025-03-29 15:28:33 +00:00
hash = "sha256-Om5kz3mtrQPd5aHZwf/9BBDnPfSzMhyRp05MqX+7XzQ=";
2023-08-02 08:57:07 -05:00
};
nativeBuildInputs = [
gobject-introspection
wrapGAppsHook3
2023-08-02 08:57:07 -05:00
];
buildInputs = [
gtk3
];
propagatedBuildInputs = [
atk
gdk-pixbuf
gtk-layer-shell
pango
python3Packages.gst-python
python3Packages.i3ipc
python3Packages.pygobject3
2023-08-10 02:21:17 +03:00
]
++ lib.optionals hyprlandSupport [
wlr-randr
2023-08-02 08:57:07 -05:00
];
dontWrapGApps = true;
2023-12-01 22:17:20 +01: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-02 08:57:07 -05: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;
2025-03-22 01:52:01 +01:00
maintainers = with lib.maintainers; [ qf0xb ];
2023-08-04 14:10:05 -05:00
mainProgram = "nwg-displays";
2023-08-02 08:57:07 -05:00
};
}