From 44fb8bb908dea0b11fa93a172f8b0bd6a13f5aca Mon Sep 17 00:00:00 2001 From: Daniel Ziltener Date: Wed, 6 Dec 2023 22:23:23 +0100 Subject: [PATCH] . --- gnu/packages/chicken.scm | 2 +- gnu/packages/nwg-displays.scm | 67 +++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/nwg-displays.scm diff --git a/gnu/packages/chicken.scm b/gnu/packages/chicken.scm index 95ffecc..0d2b738 100644 --- a/gnu/packages/chicken.scm +++ b/gnu/packages/chicken.scm @@ -40,7 +40,7 @@ version "/chicken-" version ".tar.gz")) (sha256 (base32 - "1yl0hxm9cirgcp8jgxp6vv29lpswfvaw3zfkh6rsj0vkrv44k4c1")))) + "0xhdvcdwlv9vbhxh7k0fzd32ybhc7fn83y9fj48dhzp1z7c9kbf3")))) (build-system gnu-build-system) (arguments `(#:modules ((guix build gnu-build-system) diff --git a/gnu/packages/nwg-displays.scm b/gnu/packages/nwg-displays.scm new file mode 100644 index 0000000..e02758d --- /dev/null +++ b/gnu/packages/nwg-displays.scm @@ -0,0 +1,67 @@ +(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