mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
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:
@ -151,6 +151,10 @@ in
|
|||||||
echo "$shell_integration" >> "$out/nix-support/propagated-user-env-packages"
|
echo "$shell_integration" >> "$out/nix-support/propagated-user-env-packages"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
patchelf --add-rpath "${lib.makeLibraryPath [libX11]}" "$out/bin/.ghostty-wrapped"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/mitchellh/ghostty";
|
homepage = "https://github.com/mitchellh/ghostty";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
Reference in New Issue
Block a user