diff options
| author | bd <bdunahu@operationnull.com> | 2025-12-10 19:18:30 -0500 |
|---|---|---|
| committer | bd <bdunahu@operationnull.com> | 2025-12-10 19:18:30 -0500 |
| commit | e769e0f335efb7c6a9318c111f6b8fed45a60e3c (patch) | |
| tree | 00fa13758b95edd1618246af97bca333e4789d28 /modules/tanelorn/packages/wm.scm | |
| parent | f04c4fbb5685fb6c8112ff6477fe658c8f8231a3 (diff) | |
gnu: Add eww.
* modules/tanelorn/packages/rust-crates.scm (lookup-cargo-inputs): Add eww.
* modules/tanelorn/packages/wm.scm
* README (eww): Add eww.
Diffstat (limited to 'modules/tanelorn/packages/wm.scm')
| -rw-r--r-- | modules/tanelorn/packages/wm.scm | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/modules/tanelorn/packages/wm.scm b/modules/tanelorn/packages/wm.scm new file mode 100644 index 0000000..a49c299 --- /dev/null +++ b/modules/tanelorn/packages/wm.scm @@ -0,0 +1,58 @@ +;;; Copyright © 2025 bdunahu <bdunahu@operationnull.com> +;;; +;;; SPDX-License-Identifier: GPL-3.0-or-later + +(define-module (tanelorn packages wm) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system cargo) + #:use-module (guix git-download) + #:use-module (guix gexp) + #:use-module (guix packages) + #:use-module (tanelorn packages) + #:use-module (tanelorn packages rust-crates) + #:use-module (gnu packages glib) + #:use-module (gnu packages gtk) + #:use-module (gnu packages pkg-config)) + +(define-public eww + (let ((commit "fddb4a09b107237819e661151e007b99b5cab36d") + (revision "1")) + (package + (name "eww") + (version (git-version "0.6.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/elkowar/eww") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ihgcxppywpcp24zhws1if6h7cxbrq2vd53wyh36j5mxylpbi59w")) + (modules '((guix build utils))) + ;; Remove the default features directly so that we can build + ;; the x11 and wayland packages without all dependencies, + ;; thus reducing the package size for those variants. + (snippet '(substitute* "crates/eww/Cargo.toml" + (("^default =.*") ""))))) + (build-system cargo-build-system) + (arguments + `(#:install-source? #f + #:features '("x11" "wayland") + #:cargo-install-paths '("crates/eww"))) + (inputs (cons* glib + gdk-pixbuf + gtk+ + gtk-layer-shell + libdbusmenu + (tanelorn-cargo-inputs 'eww))) + (native-inputs (list pkg-config)) + (home-page "https://elkowar.github.io/eww") + (synopsis "Widget system that works in any window manager") + (description + "Eww (Elkowars Wacky Widgets) is a standalone widget system made in Rust +that allows you to implement your own, custom widgets in any window manager. + +Configured in yuck, a language based around S-expressions and themed using CSS, +it is easy to customize and provides all the flexibility you need.") + (license license:expat)))) |
