From 8fd4097529b4a71e0de000c90c8c4279f534eada Mon Sep 17 00:00:00 2001 From: Jakub Sokołowski Date: Fri, 28 Apr 2023 11:06:08 +0200 Subject: xcodeenv: use __noChroot to avoid permission errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- pkgs/development/mobile/xcodeenv/compose-xcodewrapper.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkgs/development/mobile') 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 -- cgit 1.4.1