-
-
Notifications
You must be signed in to change notification settings - Fork 13.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package request: code-cursor #309541
Comments
They only distribute cursor editor as Appimage. It would really be great to have this packaged for Nix. |
pkgs.appimageTools.wrapType2 {
pname = "cursor";
version = "0.1.0";
src = pkgs.fetchurl {
url = "https://downloader.cursor.sh/linux/appImage/x64";
hash = "sha256-Fsy9OVP4vryLHNtcPJf0vQvCuu4NEPDTN2rgXO3Znwo=";
};
} heres a start if u wanna try it on another note this thing is so slow |
Thank you for the suggestion. I've gone another route to avoid the hash thing because the AppImage is being updated quite frequently. {pkgs, homeDir ? pkgs.lib.getHome} :
pkgs.writeShellScriptBin "cursor" ''
# Find the latest cursor AppImage in ~/Applications
echo "Home Directory: ${homeDir}"
cursor_app="$(find ${homeDir}/Applications -maxdepth 1 -name 'cursor*.AppImage' | sort | tail -n 1)"
if [[ -f "$cursor_app" ]]; then
# Execute the AppImage if found
appimage-run "$cursor_app" "$@"
else
echo "Cursor AppImage not found or not executable in ~/Applications."
exit 1
fi
'' and in my packages.nix I install it: (callPackage ./shellscripts/cursor.nix {
# inherit pkgs;
homeDir = "${homeDir}";
}) When I get prompted for an update in the cursor app, I download the latest AppImage and the shell script takes care of the rest. |
yea makes sense - im not using it actively and just wanted to quickly check it out |
any updates on this? i cant for the love of god get a desktop entry working with the appimage </3 |
Project description
This is Code OSS fork with builtin AI code generator
Metadata
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: