From 0daa747de24a9739b32a13e0c55ae2bfe4666bf1 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 25 Apr 2023 13:48:17 +0300 Subject: gnu: alacritty: Patch reference to xdg-open. * gnu/packages/terminals.scm (alacritty)[arguments]: Add a phase to add an absolute reference to xdg-open. [inputs]: Add xdg-utils. --- gnu/packages/terminals.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm index ef9f16bce5..de8ea39473 100644 --- a/gnu/packages/terminals.scm +++ b/gnu/packages/terminals.scm @@ -1450,6 +1450,10 @@ basic input/output.") (lambda* (#:key inputs outputs #:allow-other-keys) (substitute* "alacritty_terminal/Cargo.toml" (("0.22.0") "^0.23.0")))) + (add-after 'unpack 'patch-xdg-open + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "alacritty/src/config/ui_config.rs" + (("xdg-open") (search-input-file inputs "/bin/xdg-open"))))) (add-after 'configure 'add-absolute-library-references (lambda* (#:key inputs cargo-inputs vendor-dir #:allow-other-keys) (let* ((glutin-name ,(package-name rust-glutin-0.26)) @@ -1547,6 +1551,7 @@ basic input/output.") ("rust-unicode-width" ,rust-unicode-width-0.1) ("rust-wayland-client" ,rust-wayland-client-0.28) ("rust-winapi" ,rust-winapi-0.3) + ("xdg-utils" ,xdg-utils) ("wayland" ,wayland))) (native-search-paths ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is -- cgit 1.4.1