From a128336cf6d0e1fac07d81d60f91a003abbd0494 Mon Sep 17 00:00:00 2001 From: Steven Pease Date: Wed, 20 Jan 2021 10:08:03 -0800 Subject: [PATCH] Use buildPlatform instead of targetPlatform for unxip instructions --- pkgs/os-specific/darwin/xcode/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/darwin/xcode/default.nix b/pkgs/os-specific/darwin/xcode/default.nix index a96d72569687..2ce607896b5e 100644 --- a/pkgs/os-specific/darwin/xcode/default.nix +++ b/pkgs/os-specific/darwin/xcode/default.nix @@ -1,10 +1,10 @@ -{ requireFile, targetPlatform, lib }: +{ buildPlatform, requireFile, targetPlatform, lib }: let requireXcode = version: sha256: let xip = "Xcode_" + version + ".xip"; # TODO(alexfmpe): Find out how to validate the .xip signature in Linux - unxip = if targetPlatform.isDarwin + unxip = if buildPlatform.isDarwin then '' open -W ${xip} rm -rf ${xip}