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
This commit is contained in:
Efraim Flashner 2023-11-19 10:53:14 +02:00
parent 8b8637079c
commit 448e90db80
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1599,14 +1599,14 @@ (define-public alacritty
(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.