I’ve added cursor to nixpkgs-unstable as code-cursor. You can find it in the nixpkgs search.
Caveats:
Linux-only. Cursor is packaged as an AppImage and requires a FHS environment which won’t work on Darwin. (You’re better off with the official release binaries from here on Darwin and Windows).
Updates will lag the official cursor releases. There’s an update bot (or someone can update manually), plus time for approval, merging, and going through Hydra.
Bugs in the app? Please report them here.
Need an update? Open a packaging request or submit a PR to update. We won’t bite, promise.
Does anyone know how to use Cursor with a flake dev environment? I expect to be able to do nix develop cursor .
This works with VS Code but not Cursor. Right now I can’t use Cursor for development unless I install everything globally which is really annoying. There might be a simple fix for this but I’m a Nix novice and haven’t been able to figure one out.
If you could do me a favor, please run nix flake check flake.nix --impure and let me know if you see any errors such as " error: attribute ‘code-cursor’ missing".
I need additional maintainers on the package. Until then, expect minimal support and updates.
Extra maintainers would also expedite getting new releases sooner, keeping it backported, etc. I get pushback from reviewers over it being an unfree package and that delays new commits.
P.S. In an ideal world, the cursor people would maintain the derivation. I’m happy to walk them through getting started.
I got it working. I needed to move everything into buildInputs instead of having some things in nativeBuildInputs. I’m still not sure why VS Code worked without this change though.
Having run into a similar issue with logseq recently (also packaged as an AppImage), I suspect the problem is a mismatch between the packages available in 24.05 and the ones needed by cursor.