From 0c3b086e69f39d5b5f9ff4949fbd11a04b9c7397 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Thu, 15 Aug 2024 13:32:27 +0200 Subject: [PATCH] feat: add wlopm --- ruther/packages/wayland.scm | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/ruther/packages/wayland.scm b/ruther/packages/wayland.scm index 031aa34..6305585 100644 --- a/ruther/packages/wayland.scm +++ b/ruther/packages/wayland.scm @@ -219,7 +219,7 @@ (base32 "1j1x51i698fs1iw7brd7mabpvh8y8i4a3g4vyd7hl024q75jwc9n")))) (build-system gnu:gnu-build-system) (inputs - (list wayland-1.23 wayland-protocols-1.35)) + (list wayland wayland-protocols)) (native-inputs (list pkg-config)) (arguments @@ -241,3 +241,36 @@ for messaging with dwl. There are control commands and build commands") (license #f) (home-page "https://codeberg.org/notchoc/dwlmsg"))) + +(define-public wlopm + (package + (name "wlopm") + (version "0.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~leon_plickat/wlopm") + (commit (string-append "v" version)))) + (sha256 + (base32 "1qriynl80d5r7arhkiai121l0znadi00q2c8sncnlgv33ra0kici")))) + (build-system gnu:gnu-build-system) + (native-inputs + (list wayland-protocols wayland)) + (arguments + `(#:tests? #f + #:make-flags + (list + (string-append "CC=" ,(cc-for-target)) + (string-append "PREFIX=" (assoc-ref %outputs "out"))) + #:phases + (modify-phases %standard-phases + (delete 'configure)))) + (synopsis "wlopm - Wayland output power management cli") + (description "wlopm - Wayland output power management + +Simple client implementing zwlr-output-power-management-v1. + +wlopm is licensed under the GPLv3.") + (license license:gpl3) + (home-page "https://git.sr.ht/~leon_plickat/wlopm"))) -- 2.48.1