diff --git a/nix/package.nix b/nix/package.nix index 2dc69543c..ea471dd0e 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -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;