From 321430385fb368d3f521cda167ee539e239b701d Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 20 Jul 2025 14:17:52 +0200 Subject: [PATCH] hyprland: fix eval failure on darwin Darwin is not a supported platform, but the `meta.platform` check never kicks in. That's because there is a `throw` in `useMoldLinker` triggering for darwin. This, among many others, causes CI to require hacky workarounds for evaluation. By not adding this for darwin, eval up to `meta.platforms` will succeed and the package then be filtered out correctly. --- pkgs/by-name/hy/hyprland/package.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/hy/hyprland/package.nix b/pkgs/by-name/hy/hyprland/package.nix index 95cf03e4f21e..d6dc8eb402bd 100644 --- a/pkgs/by-name/hy/hyprland/package.nix +++ b/pkgs/by-name/hy/hyprland/package.nix @@ -73,7 +73,9 @@ let # possibility to add more adapters in the future, such as keepDebugInfo, # which would be controlled by the `debug` flag - adapters = [ + # Condition on darwin to avoid breaking eval for darwin in CI, + # even though darwin is not supported anyway. + adapters = lib.optionals (!stdenv.targetPlatform.isDarwin) [ stdenvAdapters.useMoldLinker ];