From bffde7c6b45fab408e3c2d0015424faaa75b9d4c Mon Sep 17 00:00:00 2001 From: jvmncs <7891333+jvmncs@users.noreply.github.com> Date: Mon, 26 May 2025 11:59:52 -0400 Subject: [PATCH] nix: Make zeditor symlink in package output (#31354) home-manager expects a `zeditor` binary to wrap (because the nixpkgs derivation names the CLI `zeditor` instead of `zed`) Release Notes: - N/A --- nix/build.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nix/build.nix b/nix/build.nix index 19df416a80..873431a427 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/app-icon-nightly@2x.png" \ "$out/share/icons/hicolor/1024x1024@2x/apps/zed.png"