summary refs log tree commit diff
path: root/pkgs/development/mobile
diff options
context:
space:
mode:
authorJakub Sokołowski <jakub@status.im>2023-04-28 11:06:08 +0200
committerJakub Sokołowski <jakub@status.im>2023-05-03 11:22:20 +0200
commit8fd4097529b4a71e0de000c90c8c4279f534eada (patch)
tree4304db72c88443a719cd13761aa6394bd43fb1a7 /pkgs/development/mobile
parent2d623b46898116b5aa4ed70f6e6cf3f3f86aed51 (diff)
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>
Diffstat (limited to 'pkgs/development/mobile')
-rw-r--r--pkgs/development/mobile/xcodeenv/compose-xcodewrapper.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/mobile/xcodeenv/compose-xcodewrapper.nix b/pkgs/development/mobile/xcodeenv/compose-xcodewrapper.nix
index fa9e893376153..f1ac578f26ef4 100644
--- a/pkgs/development/mobile/xcodeenv/compose-xcodewrapper.nix
+++ b/pkgs/development/mobile/xcodeenv/compose-xcodewrapper.nix
@@ -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