alacritty: Correct xdg-open behavior

This commit is contained in:
Graham Christensen 2020-02-20 08:12:47 -05:00
parent b43ec412bb
commit a905deb826
No known key found for this signature in database
GPG Key ID: FE918C3A98C1030F

@ -78,6 +78,10 @@ in buildRustPackage rec {
++ lib.optionals stdenv.isDarwin [ AppKit CoreGraphics CoreServices CoreText Foundation OpenGL ];
outputs = [ "out" "terminfo" ];
postPatch = ''
substituteInPlace alacritty/src/config/mouse.rs \
--replace xdg-open ${xdg_utils}/bin/xdg-open
'';
postBuild = lib.optionalString stdenv.isDarwin "make app";