I’m trying to write a new Zig project (and first-time learning the language) on my NixOS machine. I setup a trivial package derivation and devshell and wanted to try and run the boilerplate code zig init
creates, only to be hit with this peculiar error message.
$ zig build test
error: AccessDenied
My first attempt to get it working was to dangerously use sudo
to forcibly escalate it, and turns out that works (though I suppose it should’ve been obvious). Looked around but couldn’t find much of any info about this error in other NixOS spaces.
Any ziguanas have any idea what’s going on here? It’s become the main hurdle in order to actually start on development.
I will attach my boilerplate code to a GitHub repository so you may freely clone and test as well. All I did to obtain this error was zig build test
.