guix_mirror_bot pushed a commit to branch master
in repository guix.
commit ef9387c0f890fbb7da7d5111a62fc6b439b1edca
Author: stampede <[email protected]>
AuthorDate: Thu Oct 29 14:56:53 2026 +0300
gnu: noctalia-shell: Update to 5.4.1
* gnu/packages/window-management.scm (noctalia-shell): Update to 5.4.1
[source]<patches>: Remove noctalia-shell-system-libraries patch.
[arguments]<#:configure-flags>: Add `-Dsystem_libraries=true` flag.
<#:phases>{'wrap-runtime-dependencies}: Remove bin/pkexec.
<#:phases>{'patch-shell-paths}: Add 2 files to patch, and modify to match
all
tests.
[inputs]: Replace material-color-utilities-cpp with
noctalia-material-color-utilities-cpp
* gnu/packages/patches/noctalia-shell-system-libraries.patch: Delete
file.
* gnu/local.mk (dist_patch_DATA): Unregister it.
Merges: #12184
Signed-off-by: moksh <[email protected]>
---
gnu/local.mk | 1 -
.../patches/noctalia-shell-system-libraries.patch | 280 ---------------------
gnu/packages/window-management.scm | 129 +++++-----
3 files changed, 67 insertions(+), 343 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 94420cf5b98..af30baca657 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2060,7 +2060,6 @@ dist_patch_DATA =
\
%D%/packages/patches/nlopt_CMake-Assume-working-c-compiler-597.patch \
%D%/packages/patches/nnpack-system-libraries.patch \
%D%/packages/patches/noctalia-material-color-utilities-cpp-patch.patch
\
- %D%/packages/patches/noctalia-shell-system-libraries.patch \
%D%/packages/patches/node-latest-i686.patch \
%D%/packages/patches/nsis-env-passthru.patch \
%D%/packages/patches/nss-getcwd-nonnull.patch \
diff --git a/gnu/packages/patches/noctalia-shell-system-libraries.patch
b/gnu/packages/patches/noctalia-shell-system-libraries.patch
deleted file mode 100644
index 2475eae86b0..00000000000
--- a/gnu/packages/patches/noctalia-shell-system-libraries.patch
+++ /dev/null
@@ -1,280 +0,0 @@
-Use guix-packaged libraries instead of the vendored code.
-
-diff --git a/meson.build b/meson.build
-index 2f1b24102..80422067b 100644
---- a/meson.build
-+++ b/meson.build
-@@ -133,66 +133,16 @@ if not gles2_dep.found()
- endif
-
-
--# ── Vendored: fzy matcher (C fuzzy scoring)
──────────────────────────────────
--_fzy_lib = static_library('fzy',
-- 'third_party/fzy/src/match.c',
-- c_args: ['-Wno-pedantic', '-Wno-conversion'],
-- override_options: ['warning_level=0'],
--)
--fzy_dep = declare_dependency(
-- link_whole: _fzy_lib,
-- include_directories: include_directories('third_party/fzy/src', is_system:
true),
--)
--
--# ── Vendored: Material Color Utilities (Google)
───────────────────────────────
--# Upstream uses #include "cpp/..." prefixes, so the include root is the
--# material_color_utilities/ dir itself. Built as a quiet static library.
--_mcu_sources = files(
-- 'third_party/material_color_utilities/cpp/blend/blend.cc',
-- 'third_party/material_color_utilities/cpp/cam/cam.cc',
-- 'third_party/material_color_utilities/cpp/cam/hct.cc',
-- 'third_party/material_color_utilities/cpp/cam/hct_solver.cc',
-- 'third_party/material_color_utilities/cpp/cam/viewing_conditions.cc',
-- 'third_party/material_color_utilities/cpp/contrast/contrast.cc',
-- 'third_party/material_color_utilities/cpp/dislike/dislike.cc',
-- 'third_party/material_color_utilities/cpp/dynamiccolor/dynamic_color.cc',
-- 'third_party/material_color_utilities/cpp/dynamiccolor/dynamic_scheme.cc',
--
'third_party/material_color_utilities/cpp/dynamiccolor/material_dynamic_colors.cc',
-- 'third_party/material_color_utilities/cpp/palettes/tones.cc',
-- 'third_party/material_color_utilities/cpp/quantize/celebi.cc',
-- 'third_party/material_color_utilities/cpp/quantize/lab.cc',
-- 'third_party/material_color_utilities/cpp/quantize/wsmeans.cc',
-- 'third_party/material_color_utilities/cpp/quantize/wu.cc',
-- 'third_party/material_color_utilities/cpp/scheme/scheme_content.cc',
-- 'third_party/material_color_utilities/cpp/scheme/scheme_expressive.cc',
-- 'third_party/material_color_utilities/cpp/scheme/scheme_fidelity.cc',
-- 'third_party/material_color_utilities/cpp/scheme/scheme_fruit_salad.cc',
-- 'third_party/material_color_utilities/cpp/scheme/scheme_monochrome.cc',
-- 'third_party/material_color_utilities/cpp/scheme/scheme_neutral.cc',
-- 'third_party/material_color_utilities/cpp/scheme/scheme_rainbow.cc',
-- 'third_party/material_color_utilities/cpp/scheme/scheme_tonal_spot.cc',
-- 'third_party/material_color_utilities/cpp/scheme/scheme_vibrant.cc',
-- 'third_party/material_color_utilities/cpp/score/score.cc',
-- 'third_party/material_color_utilities/cpp/temperature/temperature_cache.cc',
-- 'third_party/material_color_utilities/cpp/utils/utils.cc',
--)
--_mcu_lib = static_library('material_color_utilities',
-- _mcu_sources,
-- include_directories:
include_directories('third_party/material_color_utilities', is_system: true),
-- cpp_args: ['-Wno-pedantic', '-Wno-conversion', '-Wno-shadow',
'-Wno-unused-parameter'],
-- override_options: ['warning_level=0'],
--)
--mcu_dep = declare_dependency(
-- link_whole: _mcu_lib,
-- include_directories:
include_directories('third_party/material_color_utilities', is_system: true),
--)
-+# ── System: fzy and Material Color Utilities ────────────────────────────────
-+fzy_dep = cc.find_library('fzy', required: true)
-+mcu_dep = cc.find_library('material-color-utilities', required: true)
-
- # ── System: stb_image_resize2 and stb_image_write (header-only)
─────────────────────────────────
--if not cc.has_header('stb/stb_image_resize2.h')
-- error('stb/stb_image_resize2.h not found')
-+if not cc.has_header('stb_image_resize2.h')
-+ error('stb_image_resize2.h not found')
- endif
--if not cc.has_header('stb/stb_image_write.h')
-- error('stb/stb_image_write.h not found')
-+if not cc.has_header('stb_image_write.h')
-+ error('stb_image_write.h not found')
- endif
-
- # ── System: libwebp (WebP decode and thumbnail encode)
───────────────────────
-@@ -205,103 +155,25 @@ libjxl_threads_dep = dependency('libjxl_threads',
required: true)
- # ── System: libsndfile (sound effect decoding)
───────────────────────────────
- sndfile_dep = dependency('sndfile', required: true)
-
--# ── Vendored: Luau (Roblox's Lua fork)
────────────────────────────────────────
--# Built as a quiet static library; only VM + Compiler + Bytecode + Ast +
Common are vendored.
--_luau_sources = files(
-- 'third_party/luau/Common/src/BytecodeWire.cpp',
-- 'third_party/luau/Common/src/StringUtils.cpp',
-- 'third_party/luau/Common/src/TimeTrace.cpp',
-- 'third_party/luau/Ast/src/Allocator.cpp',
-- 'third_party/luau/Ast/src/Ast.cpp',
-- 'third_party/luau/Ast/src/Confusables.cpp',
-- 'third_party/luau/Ast/src/Cst.cpp',
-- 'third_party/luau/Ast/src/Lexer.cpp',
-- 'third_party/luau/Ast/src/Location.cpp',
-- 'third_party/luau/Ast/src/Parser.cpp',
-- 'third_party/luau/Ast/src/PrettyPrinter.cpp',
-- 'third_party/luau/Bytecode/src/BytecodeBuilder.cpp',
-- 'third_party/luau/Bytecode/src/BytecodeGraph.cpp',
-- 'third_party/luau/Compiler/src/BuiltinFolding.cpp',
-- 'third_party/luau/Compiler/src/Builtins.cpp',
-- 'third_party/luau/Compiler/src/Compiler.cpp',
-- 'third_party/luau/Compiler/src/ConstantFolding.cpp',
-- 'third_party/luau/Compiler/src/CostModel.cpp',
-- 'third_party/luau/Compiler/src/lcode.cpp',
-- 'third_party/luau/Compiler/src/TableShape.cpp',
-- 'third_party/luau/Compiler/src/Types.cpp',
-- 'third_party/luau/Compiler/src/ValueTracking.cpp',
-- 'third_party/luau/VM/src/lapi.cpp',
-- 'third_party/luau/VM/src/laux.cpp',
-- 'third_party/luau/VM/src/lbaselib.cpp',
-- 'third_party/luau/VM/src/lbitlib.cpp',
-- 'third_party/luau/VM/src/lbuffer.cpp',
-- 'third_party/luau/VM/src/lbuflib.cpp',
-- 'third_party/luau/VM/src/lbuiltins.cpp',
-- 'third_party/luau/VM/src/lcorolib.cpp',
-- 'third_party/luau/VM/src/ldblib.cpp',
-- 'third_party/luau/VM/src/ldebug.cpp',
-- 'third_party/luau/VM/src/ldo.cpp',
-- 'third_party/luau/VM/src/lfunc.cpp',
-- 'third_party/luau/VM/src/lgc.cpp',
-- 'third_party/luau/VM/src/lgcdebug.cpp',
-- 'third_party/luau/VM/src/linit.cpp',
-- 'third_party/luau/VM/src/lintlib.cpp',
-- 'third_party/luau/VM/src/lclass.cpp',
-- 'third_party/luau/VM/src/lclasslib.cpp',
-- 'third_party/luau/VM/src/lmathlib.cpp',
-- 'third_party/luau/VM/src/lmem.cpp',
-- 'third_party/luau/VM/src/lnumprint.cpp',
-- 'third_party/luau/VM/src/lobject.cpp',
-- 'third_party/luau/VM/src/loslib.cpp',
-- 'third_party/luau/VM/src/lperf.cpp',
-- 'third_party/luau/VM/src/lstate.cpp',
-- 'third_party/luau/VM/src/lstring.cpp',
-- 'third_party/luau/VM/src/lstrlib.cpp',
-- 'third_party/luau/VM/src/ltable.cpp',
-- 'third_party/luau/VM/src/ltablib.cpp',
-- 'third_party/luau/VM/src/ltm.cpp',
-- 'third_party/luau/VM/src/ludata.cpp',
-- 'third_party/luau/VM/src/lutf8lib.cpp',
-- 'third_party/luau/VM/src/lveclib.cpp',
-- 'third_party/luau/VM/src/lvmexecute.cpp',
-- 'third_party/luau/VM/src/lvmload.cpp',
-- 'third_party/luau/VM/src/lvmutils.cpp',
--)
--_luau_inc = include_directories(
-- 'third_party/luau/Common/include',
-- 'third_party/luau/Ast/include',
-- 'third_party/luau/Bytecode/include',
-- 'third_party/luau/Compiler/include',
-- 'third_party/luau/VM/include',
-- 'third_party/luau/VM/src',
-- is_system: true,
--)
--_luau_lib = static_library('luau',
-- _luau_sources,
-- include_directories: _luau_inc,
-- cpp_args: ['-w'],
-- override_options: ['warning_level=0'],
--)
-+# ── System: Luau
─────────────────────────────────────────────────────────────
-+luau_compiler_dep = cc.find_library('Luau.Compiler', required: true, static:
true)
-+luau_ast_dep = cc.find_library('Luau.Ast', required: true, static: true)
-+luau_bytecode_dep = cc.find_library('Luau.Bytecode', required: true, static:
true)
-+luau_vm_dep = cc.find_library('Luau.VM', required: true, static: true)
-+luau_common_dep = cc.find_library('Luau.Common', required: true, static: true)
- luau_dep = declare_dependency(
-- link_whole: _luau_lib,
-- include_directories: _luau_inc,
-+ dependencies: [
-+ luau_compiler_dep,
-+ luau_ast_dep,
-+ luau_bytecode_dep,
-+ luau_vm_dep,
-+ luau_common_dep,
-+ ],
- )
-
--# Tests link vendored archives selectively. The application keeps link_whole
so
--# release LTO sees every member, but propagating that policy to every small
test
--# would embed all vendored code in every test executable.
--_fzy_selective_dep = declare_dependency(
-- link_with: _fzy_lib,
-- include_directories: include_directories('third_party/fzy/src', is_system:
true),
--)
--_mcu_selective_dep = declare_dependency(
-- link_with: _mcu_lib,
-- include_directories:
include_directories('third_party/material_color_utilities', is_system: true),
--)
--_luau_selective_dep = declare_dependency(
-- link_with: _luau_lib,
-- include_directories: _luau_inc,
--)
-+_fzy_selective_dep = fzy_dep
-+_mcu_selective_dep = mcu_dep
-+_luau_selective_dep = luau_dep
-
- # ── Wayland protocol generation
───────────────────────────────────────────────
- wayland_scanner = find_program('wayland-scanner')
-@@ -972,7 +844,6 @@ endif
- # ── Include directories
────────────────────────────────────────────────────────
- _noctalia_inc = [
- include_directories('src'),
-- include_directories('third_party/wuffs', is_system: true),
- # '.' adds both the source root and the corresponding build-dir root, so
- # generated protocol headers (written to the build root) are found by
#include.
- include_directories('.'),
-diff --git a/src/capture/screenshot_service.cpp
b/src/capture/screenshot_service.cpp
-index f7559bb5f..e446abad9 100644
---- a/src/capture/screenshot_service.cpp
-+++ b/src/capture/screenshot_service.cpp
-@@ -34,7 +34,7 @@
- #include <format>
- #include <fstream>
- #include <nlohmann/json.hpp>
--#include <stb/stb_image_resize2.h>
-+#include <stb_image_resize2.h>
- #include <sys/wait.h>
- #include <thread>
- #include <unistd.h>
-diff --git a/src/render/core/image_encoder.cpp
b/src/render/core/image_encoder.cpp
-index d7b61ae3d..bdce31aed 100644
---- a/src/render/core/image_encoder.cpp
-+++ b/src/render/core/image_encoder.cpp
-@@ -1,7 +1,7 @@
- #include "render/core/image_encoder.h"
-
- #define STB_IMAGE_WRITE_IMPLEMENTATION
--#include "stb/stb_image_write.h"
-+#include "stb_image_write.h"
-
- #include <cstring>
-
-diff --git a/src/render/core/image_file_loader.cpp
b/src/render/core/image_file_loader.cpp
-index d5764ba01..01ef2528c 100644
---- a/src/render/core/image_file_loader.cpp
-+++ b/src/render/core/image_file_loader.cpp
-@@ -10,7 +10,7 @@
- #include <cstdint>
- #include <cstring>
- #include <expected>
--#include <stb/stb_image_resize2.h>
-+#include <stb_image_resize2.h>
- #include <string_view>
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wexpansion-to-defined"
-diff --git a/src/render/core/stb_image_resize_impl.cpp
b/src/render/core/stb_image_resize_impl.cpp
-index 20dc1b3ff..2ba1cce54 100644
---- a/src/render/core/stb_image_resize_impl.cpp
-+++ b/src/render/core/stb_image_resize_impl.cpp
-@@ -1,2 +1,2 @@
- #define STB_IMAGE_RESIZE_IMPLEMENTATION
--#include <stb/stb_image_resize2.h>
-+#include <stb_image_resize2.h>
-diff --git a/src/render/core/thumbnail_service.cpp
b/src/render/core/thumbnail_service.cpp
-index 3debb1057..9b9f8bb28 100644
---- a/src/render/core/thumbnail_service.cpp
-+++ b/src/render/core/thumbnail_service.cpp
-@@ -13,7 +13,7 @@
- #include <filesystem>
- #include <fstream>
- #include <optional>
--#include <stb/stb_image_resize2.h>
-+#include <stb_image_resize2.h>
- #include <sys/eventfd.h>
- #include <system_error>
- #include <unistd.h>
-diff --git a/src/util/fuzzy_match.cpp b/src/util/fuzzy_match.cpp
-index 713fee25a..1875b2fc0 100644
---- a/src/util/fuzzy_match.cpp
-+++ b/src/util/fuzzy_match.cpp
-@@ -1,6 +1,6 @@
- #include "util/fuzzy_match.h"
-
--#include "match.h"
-+#include <fzy/match.h>
- #include "util/string_utils.h"
-
- #include <cmath>
diff --git a/gnu/packages/window-management.scm
b/gnu/packages/window-management.scm
index 01de14277cb..861e6c229c5 100644
--- a/gnu/packages/window-management.scm
+++ b/gnu/packages/window-management.scm
@@ -96,6 +96,7 @@
;;; Copyright © 2026 VnPower <[email protected]>
;;; Copyright © 2026 Yappaholic <[email protected]>
;;; Copyright © 2026 Edouard Klein <[email protected]>
+;;; Copyright © 2026 Stampede <[email protected]>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1502,17 +1503,16 @@ tools in a live programming environment.")
(define-public noctalia-shell
(package
(name "noctalia-shell")
- (version "5.3.0")
+ (version "5.4.1")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/noctalia-dev/noctalia")
- (commit (string-append "v" version))))
+ (url "https://github.com/noctalia-dev/noctalia")
+ (commit (string-append "v" version))))
(file-name (git-file-name "noctalia" version))
(sha256
- (base32 "14i92npvw9brc3c1jiv7wfxb2nwx6qw0bsj7hzd36lzlv8zpa8c0"))
- (patches (search-patches "noctalia-shell-system-libraries.patch"))
+ (base32 "0ih3aizacgi1v5b5qq907p3j6vsx0wjvnf9hc9gqwasb1dqir8cg"))
(modules '((guix build utils)))
(snippet
#~(begin
@@ -1523,21 +1523,27 @@ tools in a live programming environment.")
(list
#:build-type "release"
#:configure-flags
- #~(list "-Dtests=enabled" "-Dnative_optimizations=false"
- "-Djemalloc=enabled")
+ #~(list "-Dtests=enabled"
+ "-Dnative_optimizations=false"
+ "-Djemalloc=enabled"
+ "-Dsystem_libraries=true")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-shell-paths
(lambda* (#:key inputs #:allow-other-keys)
(let ((shell (search-input-file inputs "bin/sh")))
- (substitute* '("src/core/process/process.cpp"
- "tests/template_undo_signal_test.sh"
- "tests/app_identity_test.cpp"
- "tests/process_test.cpp")
+ (substitute* (cons* "src/capture/screenshot_service.cpp"
+ "src/core/process/process.cpp"
+ "src/scripting/luau_host.cpp"
+ (find-files "tests" "\\.(sh|cpp)$"))
(("/bin/sh") shell))
(substitute* "assets/dev.noctalia.Noctalia.desktop"
(("Exec=sh ")
(string-append "Exec=" shell " "))))))
+ (add-after 'unpack 'fix-stb-header-paths
+ (lambda _
+ (substitute* (find-files "." "\\.cpp$|^meson\\.build$")
+ (("\\bstb/stb_") "stb_"))))
(add-before 'check 'set-test-tmpdir
(lambda _
;; Prevent test failure due to too long a socket path
@@ -1581,7 +1587,6 @@ tools in a live programming environment.")
"bin/git" ;plugin Git sources and updates
"bin/grep" ;theme hook text processing
"bin/pgrep" ;theme hook process detection
- "bin/pkexec" ;privileged helper actions
"bin/sed" ;theme hook text processing
"bin/wlr-randr" ;fallback display power control
"bin/xdg-open")))) ;open links and OAuth pages.
@@ -1594,56 +1599,56 @@ tools in a live programming environment.")
tzdata-for-tests))
(inputs
(list
- bash-minimal ;generated wrapper and shell commands
- cairo ;2D and text rendering
- coreutils-minimal ;standard tools for theme hooks
- curl ;HTTP client library
- dconf ;optional GTK theme synchronization
- ddcutil ;optional external monitor brightness
- diffutils ;cmp for theme hooks
- fontconfig ;font discovery and fc-list
- freetype ;font rasterization
- gawk ;awk for theme hooks
- git-minimal ;plugin Git sources and updates
- glib ;GIO and GObject support
- gmp ;arbitrary-precision arithmetic
- grep ;pattern matching for theme hooks
- harfbuzz ;text shaping
- jemalloc ;recommended allocator on glibc
- libical ;iCalendar parsing
- libjxl ;JPEG XL image decoding
- libqalculate ;calculator launcher provider
- libsndfile ;sound effect decoding
- (librsvg-for-system) ;SVG image decoding
- libsecret ;Secret Service client
- libsodium ;encrypted state storage
- libwebp ;WebP image decoding
- libxkbcommon ;keyboard handling
- libxml2 ;XML parsing
- linux-pam ;lock-screen authentication
- md4c ;notification Markdown parsing
- mesa ;EGL and OpenGL ES rendering
- mpfr ;floating-point arithmetic
- nlohmann-json ;JSON parsing
- (list fzy "static") ;fuzzy matcher library
- (list luau "static") ;plugin scripting engine
- material-color-utilities-cpp ;color utilities
- wuffs ;image decoder
- pango ;text layout
- pipewire-minimal ;PipeWire client library
- polkit ;authorization agent and pkexec
- procps ;pgrep and pkill for theme hooks
- sdbus-c++ ;D-Bus client and service support
- sed ;stream editing for theme hooks
- stb-image-resize2 ;image resizing headers
- stb-image-write ;image encoding headers
- tomlplusplus ;configuration parsing
- upower ;UPower daemon; enabled separately
- wayland ;Wayland client library and scanner
- wayland-protocols ;Wayland protocol definitions
- wireplumber-minimal ;WirePlumber client library
- wlr-randr ;fallback display power control
- xdg-utils)) ;Open links and OAuth pages.
+ bash-minimal ;for wrapper and shell commands
+ cairo ;2D and text rendering
+ coreutils-minimal ;standard tools for theme hooks
+ curl ;HTTP client library
+ dconf ;(opt) GTK theme synchronization
+ ddcutil ;(opt) external monitor brightness
+ diffutils ;cmp for theme hooks
+ fontconfig ;font discovery and fc-list
+ freetype ;font rasterization
+ gawk ;awk for theme hooks
+ git-minimal ;plugin Git sources and updates
+ glib ;GIO and GObject support
+ gmp ;arbitrary-precision arithmetic
+ grep ;pattern matching for theme hooks
+ harfbuzz ;text shaping
+ jemalloc ;recommended allocator on glibc
+ libical ;iCalendar parsing
+ libjxl ;JPEG XL image decoding
+ libqalculate ;calculator launcher provider
+ libsndfile ;sound effect decoding
+ (librsvg-for-system) ;SVG image decoding
+ libsecret ;Secret Service client
+ libsodium ;encrypted state storage
+ libwebp ;WebP image decoding
+ libxkbcommon ;keyboard handling
+ libxml2 ;XML parsing
+ linux-pam ;lock-screen authentication
+ md4c ;notification Markdown parsing
+ mesa ;EGL and OpenGL ES rendering
+ mpfr ;floating-point arithmetic
+ nlohmann-json ;JSON parsing
+ (list fzy "static") ;fuzzy matcher library
+ (list luau "static") ;plugin scripting engine
+ noctalia-material-color-utilities-cpp ;color utilities
+ wuffs ;image decoder
+ pango ;text layout
+ pipewire-minimal ;PipeWire client library
+ polkit ;authorization agent and pkexec
+ procps ;pgrep and pkill for theme hooks
+ sdbus-c++ ;D-Bus client and service support
+ sed ;stream editing for theme hooks
+ stb-image-resize2 ;image resizing headers
+ stb-image-write ;image encoding headers
+ tomlplusplus ;configuration parsing
+ upower ;UPower daemon; enabled separately
+ wayland ;Wayland client library and scanner
+ wayland-protocols ;Wayland protocol definitions
+ wireplumber-minimal ;WirePlumber client library
+ wlr-randr ;fallback display power control
+ xdg-utils)) ;Open links and OAuth pages.
(home-page "https://github.com/noctalia-dev/noctalia")
(synopsis "Wayland desktop shell")
(description