xcodeenv: use __noChroot to avoid permission errors

When `sandbox=relaxed` is used this derivation fails with:
```
> /nix/store/yyy-stdenv-darwin/setup: line 1391: /nix/store/xxx-xcode-wrapper-14.3/bin/xcodebuild: Operation not permitted
> We require xcodebuild version: 14.3
```

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-04-28 11:06:08 +02:00
parent 2d623b4689
commit 8fd4097529
No known key found for this signature in database
GPG key ID: FE65CD384D5BF7B4

View file

@ -8,6 +8,8 @@ assert stdenv.isDarwin;
stdenv.mkDerivation {
pname = "xcode-wrapper${lib.optionalString allowHigher "-plus"}";
inherit version;
# Fails in sandbox. Use `--option sandbox relaxed` or `--option sandbox false`.
__noChroot = true;
buildCommand = ''
mkdir -p $out/bin
cd $out/bin