Merge pull request #225119 from amjoseph-nixpkgs/pr/alacritty/fix-cross

alacritty: fix cross
This commit is contained in:
Jörg Thalheim 2023-04-08 05:49:12 +01:00 committed by GitHub
commit 456d8190ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ rustPlatform.buildRustPackage rec {
outputs = [ "out" "terminfo" ];
postPatch = ''
postPatch = lib.optionalString (!xdg-utils.meta.broken) ''
substituteInPlace alacritty/src/config/ui_config.rs \
--replace xdg-open ${xdg-utils}/bin/xdg-open
'';
@ -104,7 +104,7 @@ rustPlatform.buildRustPackage rec {
# patchelf generates an ELF that binutils' "strip" doesn't like:
# strip: not enough room for program headers, try linking with -N
# As a workaround, strip manually before running patchelf.
strip -S $out/bin/alacritty
$STRIP -S $out/bin/alacritty
patchelf --set-rpath "${lib.makeLibraryPath rpathLibs}" $out/bin/alacritty
''