Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
nix: Fix LDFLAGS rpath (#26912)
Julia Ryan73ac3d9a99f7
diff --git a/nix/build.nix b/nix/build.nixindex 940623894de..422f12b4c26 100644--- a/nix/build.nix+++ b/nix/build.nix@@ -145,7 +145,7 @@ letZED_UPDATE_EXPLANATION = "Zed has been installed using Nix. Auto-updates have thus been disabled.";RELEASE_VERSION = version;RUSTFLAGS = if withGLES then "--cfg gles" else "";- # TODO: why are these not handled by the linker given that they're in buildInputs?+ # these libraries are used with dlopen so putting them in buildInputs isn't enoughNIX_LDFLAGS = "-rpath ${lib.makeLibraryPath [gpu-lib@@ -155,6 +155,9 @@ letLK_CUSTOM_WEBRTC = livekit-libwebrtc;};+ # prevent nix from removing the "unused" wayland/gpu-lib rpaths+ dontPatchELF = true;+cargoVendorDir = craneLib.vendorCargoDeps {inherit src cargoLock;overrideVendorGitCheckout =