From 8fd4097529b4a71e0de000c90c8c4279f534eada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 28 Apr 2023 11:06:08 +0200 Subject: [PATCH] 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(+) diff --git a/pkgs/development/mobile/xcodeenv/compose-xcodewrapper.nix b/pkgs/development/mobile/xcodeenv/compose-xcodewrapper.nix index fa9e89337615..f1ac578f26ef 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