···11-{ requireFile, targetPlatform, lib }:
11+{ buildPlatform, requireFile, targetPlatform, lib }:
2233let requireXcode = version: sha256:
44 let
55 xip = "Xcode_" + version + ".xip";
66 # TODO(alexfmpe): Find out how to validate the .xip signature in Linux
77- unxip = if targetPlatform.isDarwin
77+ unxip = if buildPlatform.isDarwin
88 then ''
99 open -W ${xip}
1010 rm -rf ${xip}