;;; SPDX-License-Identifier: GPL-3.0-or-later ;;; Copyright © 2025-2026 Hilton Chain (define-module (rosenthal packages wm) ;; Utilities #:use-module (guix deprecation) #:use-module (guix gexp) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) ;; Guix origin methods #:use-module (guix git-download) ;; Guix build systems #:use-module (guix build-system meson) ;; Guix packages #:use-module (gnu packages calendar) #:use-module (gnu packages cpp) #:use-module (gnu packages crypto) #:use-module (gnu packages curl) #:use-module (gnu packages fontutils) #:use-module (gnu packages freedesktop) #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages jemalloc) #:use-module (gnu packages linux) #:use-module (gnu packages markup) #:use-module (gnu packages maths) #:use-module (gnu packages multiprecision) #:use-module (gnu packages pkg-config) #:use-module (gnu packages polkit) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages stb) #:use-module (gnu packages window-management) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml)) (define wayland-protocols-1.48 (package (inherit wayland-protocols) (name "wayland-protocols") (version "1.48") (source (origin (method git-fetch) (uri (git-reference (url "https://gitlab.freedesktop.org/wayland/wayland-protocols") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0zqnn7bwqzifchjhclrrcqnp39cpd3nnf6nbd9bav2hwhcx92mwy")))))) ;; TODO: Unbundle dependencies under the third_party directory. (define-public noctalia (package (name "noctalia") (version "5.1.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/noctalia-dev/noctalia-shell") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1zf4q6lrpb0zp3sdwlqmj1cxfhislkssya8cslj0w9y096ha3dq3")))) (build-system meson-build-system) (arguments (list #:build-type "release" #:phases #~(modify-phases %standard-phases (add-after 'unpack 'prepare-for-build (lambda _ ;; /bin/sh doesn't exist in the build environment. (substitute* "tests/process_test.cpp" (("/bin/(sh)" _ cmd) (which cmd))) ;; Adjust import paths for STB headers packaged in Guix. (substitute* (find-files "." "\\.cpp$|^meson\\.build$") (("\\bstb/stb_") "stb_"))))))) (native-inputs (list pkg-config)) (inputs (list cairo curl fontconfig freetype glib gmp harfbuzz jemalloc mpfr (librsvg-for-system) libjxl libical libqalculate libsecret libsndfile libsodium libwebp libxkbcommon libxml2 linux-pam md4c mesa nlohmann-json pango pipewire polkit sdbus-c++ stb-image-resize2 stb-image-write tomlplusplus wayland wayland-protocols-1.48 wireplumber)) (home-page "https://noctalia.dev/") (synopsis "Wayland shell and bar") (description "Noctalia is a lightweight Wayland shell and bar built directly on Wayland and OpenGL ES, with no Qt or GTK dependency.") (license license:expat))) (define-deprecated-package noctalia-shell noctalia) (define-public noctalia-greeter (package (name "noctalia-greeter") (version "1.6.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/noctalia-dev/noctalia-greeter") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1ml2wssydhlvsm16njrlqzyq4a0rlpc0h7jv6hcvwl3cd134f2ka")))) (build-system meson-build-system) (arguments (list #:build-type "release" #:phases #~(modify-phases %standard-phases (add-after 'unpack 'prepare-for-build (lambda _ ;; Adjust import paths for STB headers packaged in Guix. (substitute* (find-files "." "\\.cpp$|^meson\\.build$") (("\\bstb/stb_") "stb_")) ;; Reproducibility. (substitute* "meson.build" (("'-march=native', '-mtune=native',") ""))))))) (native-inputs (list pkg-config wayland)) (inputs (list cairo fontconfig freetype glib harfbuzz jemalloc (librsvg-for-system) libwebp libxkbcommon libxml2 mesa nlohmann-json pango stb-image-resize2 tomlplusplus wayland wayland-protocols wlroots)) (home-page "https://noctalia.dev/") (synopsis "Login greeter for greetd") (description "Noctalia Greeter is a minimal login greeter for greetd that matches the look and feel of Noctalia Shell") (license license:expat)))