mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
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:
parent
2d623b4689
commit
8fd4097529
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue