alacritty: fix path to xdg-open

This commit is contained in:
Graham Christensen 2019-09-16 21:49:00 -04:00
parent 7bbce4af57
commit 21dd0207b2
No known key found for this signature in database
GPG Key ID: ACA1C1D120C83D5C

View File

@ -22,6 +22,7 @@
libxcb,
libxkbcommon,
wayland,
xdg_utils,
# Darwin Frameworks
AppKit,
@ -75,6 +76,10 @@ in buildRustPackage rec {
++ lib.optionals stdenv.isDarwin [ AppKit CoreGraphics CoreServices CoreText Foundation OpenGL ];
outputs = [ "out" "terminfo" ];
postPatch = ''
substituteInPlace alacritty_terminal/src/config/mouse.rs \
--replace xdg-open ${xdg_utils}/bin/xdg-open
'';
postBuild = lib.optionalString stdenv.isDarwin "make app";