Nix packages for third-party projects that don't ship their own flakes
0

Configure Feed

Select the types of activity you want to include in your feed.

fix(zed-preview): install GUI binary under lib/zed to avoid profile clash

nixpkgs zed-editor already owns libexec/zed-editor. Move the preview GUI
binary to lib/zed/zed-editor (CLI's documented fallback) so both packages
can coexist in a nix profile.

author
nandi
date (Jul 23, 2026, 12:22 AM -0700) commit f3377d26 parent 2afa772e change-id okomnppw
+8 -3
+8 -3
packages/zed-preview/default.nix
··· 49 49 50 50 mkdir -p $out 51 51 cp -a bin lib libexec share $out/ 52 - # Coexist with nixpkgs zed-editor / zed-editor-fhs (binary + icons). 52 + # Coexist with nixpkgs zed-editor / zed-editor-fhs (bin + icons + libexec). 53 + # CLI looks up ../libexec/zed-editor then ../lib/zed/zed-editor (see 54 + # crates/cli); use the second path so profile install does not collide. 53 55 mv $out/bin/zed $out/bin/zed-preview 56 + mkdir -p $out/lib/zed 57 + mv $out/libexec/zed-editor $out/lib/zed/zed-editor 58 + rmdir $out/libexec 54 59 55 60 # Rename icons so share/icons/.../zed.png does not collide with zed-editor. 56 61 find $out/share/icons -type f -name 'zed.png' | while read -r icon; do ··· 73 78 wrapProgram $out/bin/zed-preview \ 74 79 --set ZED_UPDATE_EXPLANATION "Zed Preview has been installed using Nix. Auto-updates have thus been disabled." \ 75 80 --set XKB_CONFIG_ROOT "${xkeyboard-config}/share/X11/xkb" 76 - # CLI execs libexec/zed-editor; wrap it too so direct launches get the same env. 77 - wrapProgram $out/libexec/zed-editor \ 81 + # GUI binary (CLI spawns this via ../lib/zed/zed-editor). 82 + wrapProgram $out/lib/zed/zed-editor \ 78 83 --set ZED_UPDATE_EXPLANATION "Zed Preview has been installed using Nix. Auto-updates have thus been disabled." \ 79 84 --set XKB_CONFIG_ROOT "${xkeyboard-config}/share/X11/xkb" 80 85 '';