nix: add libX11 to RUNPATH

This adds libX11 to the (wrapped) binary RUNPATH in the Nix package
fixupPhase, to ensure that the dlopen we are doing of it now in #1193
functions correctly.

Note that we patch ".ghostty-wrapped" here, as this is now the main
binary after #1104.
This commit is contained in:
Chris Marchesi
2024-01-01 12:22:37 -08:00
parent acba69a4ce
commit 5704baf4e6

View File

@ -151,6 +151,10 @@ in
echo "$shell_integration" >> "$out/nix-support/propagated-user-env-packages"
'';
postFixup = ''
patchelf --add-rpath "${lib.makeLibraryPath [libX11]}" "$out/bin/.ghostty-wrapped"
'';
meta = with lib; {
homepage = "https://github.com/mitchellh/ghostty";
license = licenses.mit;