alacritty: only depend on xdg-utils on Linux

This is technically not entirely correct (for BSDs etc), but there are other
isLinux checks in the file so let's just do this to unblock Darwin users for now.

Fixes #288468.
This commit is contained in:
K900 2024-02-13 10:45:01 +03:00
parent 641d3aeeab
commit 1d45b14461

View File

@ -83,7 +83,7 @@ rustPlatform.buildRustPackage rec {
outputs = [ "out" "terminfo" ];
postPatch = lib.optionalString (!xdg-utils.meta.broken) ''
postPatch = lib.optionalString stdenv.isLinux ''
substituteInPlace alacritty/src/config/ui_config.rs \
--replace xdg-open ${xdg-utils}/bin/xdg-open
'';