Installing zed-editor doesn't work

Hi all,

I’m new to NixOS and already installed some packages and they all went well.

Now I want to install the package zed-editor, but it doesn’t work

environment.systemPackages = with pkgs; [

pkgs.zed-editor

];

no error messages and afterwards I can’t find it e.g. with

ls /nix/store

which zed

which zed-editor

is any other activation needed?

Thank you for any tips in advance

According to this output, you should see something when doing which zeditor:

$ nix eval nixpkgs#zed-editor.outPath
"/nix/store/vssap0wkbbihccicr7cw4ipi3ishm80f-zed-editor-0.216.1"
$ nix eval nixpkgs\#zed-editor.meta.mainProgram
"zeditor"

If you do not, please share more information, like your entire configuration.

1 Like

Hi,

try zeditor without the -

1 Like

After installation, it should show up in your start menu or application launcher due to the included desktop file. The CLI is called zeditor instead of zed or zed-editor because we also have a database called zed in nixpkgs and because zeditor is one of the alternative CLI names suggested by upstream (if zed can’t be used). I personally (as one of the package maintainers of zed-editor) don’t like that we renamed the CLI and would prefer going back to just zed.

Edit: as a funny observation, another program called zed (spicedb-zed) exists in nixpkgs, and that one did not go out of its way to avoid the binary name collision.

Edit 2: spicedb-zed is actually the oldest zed in nixpkgs (added 2022-08-06), while the package called zed has been added just a week after (2022-08-11). I’m not convinced it’s likely enough any of these three will be installed at the same time to keep on confusing zed-editor users with the CLI name differing from upstream.

Edit 3: the PR that renamed the CLI for reference: zed-editor: rename zed binary to zeditor, change pname to zed-editor by JohnRTitor · Pull Request #344193 · NixOS/nixpkgs · GitHub