We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3654cda + f479142 commit 2bb95afCopy full SHA for 2bb95af
pkgs/by-name/co/code-cursor/package.nix
@@ -167,15 +167,10 @@ stdenvNoCC.mkDerivation {
167
168
${lib.optionalString hostPlatform.isDarwin ''
169
APP_DIR="$out/Applications"
170
- CURSOR_APP="$APP_DIR/Cursor.app"
171
mkdir -p "$APP_DIR"
172
cp -Rp Cursor.app "$APP_DIR"
173
mkdir -p "$out/bin"
174
- cat << EOF > "$out/bin/cursor"
175
- #!${stdenvNoCC.shell}
176
- open -na "$CURSOR_APP" --args "\$@"
177
- EOF
178
- chmod +x "$out/bin/cursor"
+ ln -s "$APP_DIR/Cursor.app/Contents/Resources/app/bin/cursor" "$out/bin/cursor"
179
''}
180
181
runHook postInstall
0 commit comments