Unverified Commit a28f1df8 authored by John Titor's avatar John Titor
Browse files

zed-editor: rename zed binary to zeditor

At least three packages provide a "zed" binary including `zfs`, `spicedb-zed`, and `zed` binary which can lead to conflicts.

Renaming the `cli` binary to `zeditor` is even recommmeded in zed-editor official packaging instructions.

https://github.com/zed-industries/zed/blob/main/docs/src/development/linux.md#other-things-to-note


Signed-off-by: default avatarJohn Titor <50095635+JohnRTitor@users.noreply.github.com>
parent b2b59812
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@
assert withGLES -> stdenv.isLinux;

let
  executableName = "zed";
  executableName = "zeditor";
  # Based on vscode.fhs
  # Zed allows for users to download and use extensions
  # which often include the usage of pre-built binaries.
@@ -218,7 +218,7 @@ rustPlatform.buildRustPackage rec {

    mkdir -p $out/bin $out/libexec
    cp target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/zed $out/libexec/zed-editor
    cp target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cli $out/bin/zed
    cp target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cli $out/bin/zeditor

    install -D ${src}/crates/zed/resources/app-icon@2x.png $out/share/icons/hicolor/1024x1024@2x/apps/zed.png
    install -D ${src}/crates/zed/resources/app-icon.png $out/share/icons/hicolor/512x512/apps/zed.png
@@ -227,7 +227,7 @@ rustPlatform.buildRustPackage rec {
    # and https://github.com/zed-industries/zed/blob/v0.141.2/script/install.sh (final desktop file name)
    (
      export DO_STARTUP_NOTIFY="true"
      export APP_CLI="zed"
      export APP_CLI="zeditor"
      export APP_ICON="zed"
      export APP_NAME="Zed"
      export APP_ARGS="%U"
@@ -262,7 +262,7 @@ rustPlatform.buildRustPackage rec {
      GaetanLepage
      niklaskorz
    ];
    mainProgram = "zed";
    mainProgram = "zeditor";
    platforms = lib.platforms.all;
    # Currently broken on darwin: https://github.com/NixOS/nixpkgs/pull/303233#issuecomment-2048650618
    broken = stdenv.isDarwin;