Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

nix: Make zeditor symlink in package output (#31354)

jvmncsbffde7c6b45f
diff --git a/nix/build.nix b/nix/build.nix
index 19df416a80d..873431a4276 100644
--- a/nix/build.nix
+++ b/nix/build.nix
@@ -280,7 +280,9 @@ craneLib.buildPackage (
mkdir -p $out/bin $out/libexec
cp $TARGET_DIR/zed $out/libexec/zed-editor
- cp $TARGET_DIR/cli $out/bin/zed
+ cp $TARGET_DIR/cli $out/bin/zed
+ ln -s $out/bin/zed $out/bin/zeditor # home-manager expects the CLI binary to be here
+
install -D "crates/zed/resources/[email protected]" \
"$out/share/icons/hicolor/1024x1024@2x/apps/zed.png"