code-cursor: use generic vscode package builder#413785
code-cursor: use generic vscode package builder#413785JohnRTitor merged 2 commits intoNixOS:masterfrom
Conversation
afd2998 to
bc203db
Compare
bc203db to
8dae30d
Compare
I believe this CI check does not apply to this situation. |
|
wow! tysm. |
|
at a glance here (limited time for me atm in finals) it looks like you additionally added vscode configuration for code-cursor? |
I don't know. I couldn't find the programs.vscode.settings you're talking about. If you mean the patchVSCodePath flag, it's because Cursor, unlike VSCode, has no wrapper script, so there's nothing to patch, and without it, the build fails. Maybe it could work if we added a new wrapper script, but I really don't understand what it's for and how to test it, so I didn't touch it - the previous Cursor package didn't have it. |
|
I think @aspauldingcode meant the home-manager option |
Prince213
left a comment
There was a problem hiding this comment.
Briefly tested on x86_64-linux.
|
@Zaczero Please update the PR title to include the version update. |
I hope it's good now (I'm new to nixpkgs). |
|
I did it built, launched, I tooled around in it a bit, then closed. x86_64-linux. Briefly tested. |
Manually closed it? Or do you mean it crashed? |
That's what I meant, yea srry |
It currently also accepts Cursor |
|
Performance is quite better for me, and Worked without modifications on my config |
5ef2935 to
2657b69
Compare
Done, I have taken this opportunity to keep the code-cursor package in its own directory as Windsurf does. This will now make all CI checks hopefully pass too. |
2657b69 to
9ce43ff
Compare
|
with this change would we be able to do something along the lines of programs.vscode = {
enable = true;
package = pkgs.code-cursor;
extensions = with pkgs.vscode-extensions; [
...
];
}; |
7bc0453 to
9749e6b
Compare
|
I have set
My testing was done on Plasma X11. The VSCode generic builder seems to already take care of the Wayland support: As per GTK and Qt testing, I believe this is mostly handled by the application itself and not the packaging. Given that Cursor is based on VSCode, I think it will work just fine, especially since the generic builder is battle-tested across VSCode and its forks. |
|
I can test on Wayland if necessary. @sarahec let me know if darwin part is fixed and I can take a final look then and merge. |
|
@JohnRTitor LGTM on Darwin-aarch64. Built, ran from the command line. |
|
Wayland works fine. |
Co-authored-by: Masum Reza <50095635+JohnRTitor@users.noreply.github.com>
|
Humm, looks like eval reviewers is being cancelled because all reviewers have already left a review, but this is showing up as "failed". CC @wolfgangwalther I assume this is intended? |
🎉 |
Uhm, no, not intended. Seems like the label workflow cancelled the reviewer request workflow. Thanks for the ping, will fix. |
|
So with these changes - we still install it as per usual via pkgs.code-cursor and nothing much else changes except we get better performance and the ability to open /etc/nixos using cursor + fhs cursor, right? |
|
@hackr-sh Ye |


Updated code-cursor package to use the generic vscode package builder, which it is compatible with (apart from the extra step of unpacking the AppImage archive). This fixes hardware acceleration for me and substantially improves Cursor performance. A few more bonuses: it adds a code-cursor-fhs variant, and cursor is now able to launch in the
/etc/nixosdirectory (whereas previously it couldn't).Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.