From ba0258e63a067089fdd48cae98f41f9e8a9eed95 Mon Sep 17 00:00:00 2001 From: Daniel Ziltener Date: Wed, 20 Dec 2023 17:09:53 +0100 Subject: [PATCH] Almost fixed nwg-displays. --- zilti/packages/nwg-displays.scm | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/zilti/packages/nwg-displays.scm b/zilti/packages/nwg-displays.scm index 717c632..e125ab9 100644 --- a/zilti/packages/nwg-displays.scm +++ b/zilti/packages/nwg-displays.scm @@ -29,24 +29,33 @@ (modules '((guix build utils))))) (native-inputs (list gobject-introspection + gtk+ python-wheel)) - (inputs - (list gtk+)) (propagated-inputs (list atk gdk-pixbuf gtk-layer-shell + gobject-introspection pango python-i3ipc python-gst python-pygobject + python-wheel wlr-randr)) (build-system pyproject-build-system) (arguments (list #:tests? #f + #:build-backend "setuptools.build_meta" #:phases #~(modify-phases %standard-phases - (delete 'sanity-check)))) + (delete 'sanity-check) + (replace 'wrap + (lambda* (#:key outputs #:allow-other-keys) + (invoke "find" ".") + (wrap-program + (string-append (assoc-ref outputs "out") "/bin/nwg-displays") + `("GUIX_PYTHONPATH" ":" prefix (,(getenv "GUIX_PYTHONPATH"))) + `("GI_TYPELIB_PATH" ":" prefix (, (getenv "GI_TYPELIB_PATH"))))))))) (home-page "https://github.com/nwg-piotr/nwg-displays") (synopsis "Output management utility for sway and Hyprland.") (description "Output management utility for sway Wayland compositor, inspired by wdisplays and wlay.")