Hiya fellow NixOS users, hope this post finds you well
I’m reaching out for some help with setting up the Cursor IDE to use rust-analyzer, and I’d love your insights if anyone has encountered similar issues.
System Details:
NixOS Version: 24.11
Configuration Method: Using flakes, combining stable and unstable packages.
Installation Attempts: Tried both nixpkgs and home-manager.
The Problem I’m Facing:
Whenever I try to install Cursor with the rust-analyzer extension using the vscode-with-extensions package, I run into errors that prevent Cursor from building. Here are the error messages:
error: attribute ‘executableName’ missing
error: attribute ‘cursor’ missing
These issues appear no matter which configuration method I try—either via nixpkgs or home-manager.
My Goal vs. Reality:
I’m hoping to integrate Cursor in place of VSCode with the rust-analyzer extension. Unfortunately, I can’t even get Cursor to build due to these errors.
Any advice or suggestions would be incredibly appreciated!
I’ve never heard of cursor nor am I very familiar with vscode-with-extensions. Is it possible to just install the rust-analyzer extension another way? e.g. I use an abstraction to write out to ~/.vscode-oss/extensions for vscodium, I assume cursor has an equivalent?
Cursor is a fork of VSCodium but with a lot of AI features, perhaps not something popular within the NixOS community, but for me, a tool is a tool.
I didn’t consider patching Cursor’s extensions that way, but that’d be a huge saver for anything that isn’t directly compatible with Cursor!
If you have the time and desire, would you be willing to illustrate how I would go about doing this? I’ve never patched the directory contents of a derivation within my configuration, so this is a new experience for me.
Thank you again for the speedy reply and most importantly the brilliant idea, I’ll try to hack something together until I learn what the proper way would be
code-cursor maintainer here. code-cursor doesn’t work with vscode-with-extensions since it doesn’t use the base vscode build from nixpkgs. (This is because the cursor folks make changes to vscode itself so I can’t layer cursor over standard vscode.)