guixchannel/gnu/packages/nwg-displays.scm
2023-12-06 22:23:23 +01:00

68 lines
2.2 KiB
Scheme

(define-module (gnu packages nwg-displays)
#:use-module (guix)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix gexp)
#:use-module (guix build-system python)
#:use-module (guix git-download)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages)
#:use-module (gnu packages gtk)
#:use-module (gnu packages glib)
#:use-module (gnu packages gstreamer)
#:use-module (gnu packages python)
#:use-module (gnu packages python-build)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages wm))
(define-public nwg-displays
(package
(name "nwg-displays")
(version "0.3.9")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/nwg-piotr/nwg-displays.git")
(commit (string-append "v" version))))
(sha256 (base32 "0khcdmvdz98cac794znsc7yjwd4w1p9y82nbrl2a8jwp1712a557"))
(modules '((guix build utils)))
(snippet
#~(begin
(substitute* "nwg_displays/main.py"
(("'Gtk', '3.0'") "'Gtk', '4.8.1'"))
(substitute* "nwg_displays/tools.py"
(("'Gdk', '3.0'") "'Gdk', '4.8.1'"))))))
(native-inputs
(list gobject-introspection
python-setuptools
python-wrapper
python-wheel))
(inputs
(list gtk
gtk+
gtk-layer-shell))
(propagated-inputs
(list atk
gdk-pixbuf
gtk-layer-shell
pango
python-i3ipc
python-gst
python-pygobject
wlr-randr))
(build-system python-build-system)
(arguments
(list #:tests? #f
#:phases
#~(modify-phases %standard-phases
(delete 'sanity-check))))
(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.")
(license license:expat)))
;; This allows you to run guix shell -f example.scm.
;; Remove this line if you just want to define a package.
;;nwg-displays