[BUG] nix build flake url not correctly parsed for permissions allow
Resolved 💬 3 comments Opened Aug 5, 2025 by covert8 Closed Aug 15, 2025
Environment
- Platform (select one):
- [X] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.51<!-- output of
claude --version--> - Operating System: nixos unstable<!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->
- Terminal: urxvtc <!-- e.g. iTerm2, Terminal App -->
Bug Description
When adding "nix build:" to the allow list because of the flake uri syntax ".#abc" its is not included in "nix build: "
<!-- A clear and concise description of the bug -->
Steps to Reproduce
- download any flake using git clone<!-- First step -->
- add Bash(nix build:*) to settings.local.json .permissions.allow[]
- attempt to build path in flake
nix build .#abc<!-- Second step --> - get permission requirement<!-- And so on... -->
Expected Behavior
claude code gets to build in the nix sandbox without permission check
<!-- What you expected to happen -->
Actual Behavior
gets permission check
<!-- What actually happened -->
Additional Context
N.A.
<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗