Disable broken Hyprland verify check
This commit is contained in:
@@ -2,7 +2,7 @@ local M = {}
|
|||||||
|
|
||||||
function M.setup(ctx)
|
function M.setup(ctx)
|
||||||
local _ENV = ctx
|
local _ENV = ctx
|
||||||
if enable_nstack then
|
if enable_nstack and not verify_config then
|
||||||
hl.plugin.load("/run/current-system/sw/lib/libhyprNStack.so")
|
hl.plugin.load("/run/current-system/sw/lib/libhyprNStack.so")
|
||||||
end
|
end
|
||||||
if enable_hyprexpo and not verify_config then
|
if enable_hyprexpo and not verify_config then
|
||||||
|
|||||||
@@ -57,22 +57,9 @@ in {
|
|||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
hyprlandConfigDir = ../../dotfiles/config/hypr;
|
hyprlandConfigDir = ../../dotfiles/config/hypr;
|
||||||
};
|
};
|
||||||
hyprland-verify-config = let
|
# Hyprland 0.54 currently segfaults in --verify-config before it can
|
||||||
hyprlandPackage = inputs.hyprland.packages.${system}.hyprland;
|
# validate even an empty config in this environment. Keep coverage in
|
||||||
hyprNStackPackage = inputs.hyprNStack.packages.${system}.hyprNStack;
|
# hyprland-config-syntax until the upstream verifier is usable again.
|
||||||
in
|
|
||||||
pkgs.runCommand "hyprland-lua-verify-config" {} ''
|
|
||||||
cp -r ${../../dotfiles/config/hypr}/. .
|
|
||||||
chmod -R +w .
|
|
||||||
substituteInPlace hyprland/settings.lua \
|
|
||||||
--replace-fail /run/current-system/sw/lib/libhyprNStack.so \
|
|
||||||
${hyprNStackPackage}/lib/libhyprNStack.so
|
|
||||||
export XDG_RUNTIME_DIR="$TMPDIR/runtime"
|
|
||||||
mkdir -p "$XDG_RUNTIME_DIR"
|
|
||||||
HYPRLAND_NO_CRASHREPORTER=1 ${pkgs.coreutils}/bin/timeout 20s \
|
|
||||||
${hyprlandPackage}/bin/Hyprland --verify-config --config "$PWD/hyprland.lua"
|
|
||||||
touch "$out"
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Dev shell for org-agenda-api deployment
|
# Dev shell for org-agenda-api deployment
|
||||||
|
|||||||
Reference in New Issue
Block a user