# nix: Fix LDFLAGS rpath \(\#26912\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/73ac3d9a99f7bfa3cb1d2ff5824f975c9dce2288)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 73ac3d9a99f7bfa3cb1d2ff5824f975c9dce2288

Requested commit: 73ac3d9a99f7bfa3cb1d2ff5824f975c9dce2288

Commit: 73ac3d9a99f7bfa3cb1d2ff5824f975c9dce2288

Tree: a036ca490aa8f143844b87bd4c86a2a70f6578aa

Author: Julia Ryan

Committer: GitHub

## Message

```
nix: Fix LDFLAGS rpath (#26912)

By default stdenv strips all unused rpaths, but we use a few libraries
that are `dlopen`'d so we need to stop it from removing those. The
[`dontPatchELF`
flag](https://ryantm.github.io/nixpkgs/stdenv/stdenv/#var-stdenv-dontPatchELF)
disables that and makes the nix build work on wayland again.

Fix #26905
Close #26864

Release Notes:

- N/A
```

## Parents

- [2269f996f7085b94b7a5bb8395e0ada79fb1b899](https://git.cafe/gitcafe/zed/commit/2269f996f7085b94b7a5bb8395e0ada79fb1b899?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/73ac3d9a99f7bfa3cb1d2ff5824f975c9dce2288?format=markdown)
