diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2023-11-19 10:53:14 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-11-28 07:59:40 +0200 |
commit | 448e90db804f9b3aaa9339f93bbda508bc8e6008 (patch) | |
tree | 774cbf03c10cd92ef342dcf1ec504539672523c1 /gnu/packages/terminals.scm | |
parent | 8b8637079cb13d913927444ffd989cea1cbbd615 (diff) | |
download | guix-448e90db804f9b3aaa9339f93bbda508bc8e6008.tar.gz guix-448e90db804f9b3aaa9339f93bbda508bc8e6008.zip |
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
Diffstat (limited to 'gnu/packages/terminals.scm')
-rw-r--r-- | gnu/packages/terminals.scm | 6 |
1 files changed, 3 insertions, 3 deletions
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. |