From 448e90db804f9b3aaa9339f93bbda508bc8e6008 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 19 Nov 2023 10:53:14 +0200 Subject: gnu: alacritty: Prepare for cross-compiling. * gnu/packages/terminals.scm (alacritty)[arguments]: Adjust the custom 'install phase to use the native 'tic' command and to find the alacritty binary wherever it is located. Change-Id: I3117f41a97bb6a5dd1037544c1a27bc01e924396 --- gnu/packages/terminals.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gnu/packages/terminals.scm') diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm index 27b1e1a2ac..31be68306c 100644 --- a/gnu/packages/terminals.scm +++ b/gnu/packages/terminals.scm @@ -1599,14 +1599,14 @@ basic input/output.") (search-input-file inputs "lib/libxkbcommon.so"))))) (replace 'install ;; Upstream install script only takes care of executable. - (lambda* (#:key inputs outputs #:allow-other-keys) + (lambda* (#:key native-inputs inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (bin (string-append out "/bin")) (share (string-append out "/share")) (icons (string-append share "/icons/hicolor/scalable/apps")) - (tic (search-input-file inputs "/bin/tic")) + (tic (search-input-file (or native-inputs inputs) "/bin/tic")) (man (string-append share "/man/man1")) - (alacritty-bin "target/release/alacritty")) + (alacritty-bin (car (find-files "target" "^alacritty$")))) ;; Install the executable. (install-file alacritty-bin bin) ;; Install man pages. -- cgit v1.2.3