Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

Commit 108928d

Browse files
committed
Fix no new privileges for Nix build
1 parent aab1765 commit 108928d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

flake.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,15 @@
7474
# Rename the binary
7575
mv $out/bin/code $out/bin/cursor || true
7676
mv $out/bin/codium $out/bin/cursor || true
77+
78+
# Wrap the binary to disable no-new-privileges
79+
mv $out/bin/cursor $out/bin/.cursor-wrapped
80+
makeWrapper $out/bin/.cursor-wrapped $out/bin/cursor \
81+
--set NO_NEW_PRIVILEGES "0"
7782
'';
7883

84+
nativeBuildInputs = (oldAttrs.nativeBuildInputs or []) ++ [ pkgs.makeWrapper ];
85+
7986
meta = oldAttrs.meta // {
8087
description = "Cursor ${cursorVersion}";
8188
mainProgram = "cursor";

0 commit comments

Comments
 (0)