Use buildPlatform instead of targetPlatform for unxip instructions

This commit is contained in:
Steven Pease 2021-01-20 10:08:03 -08:00
parent 0fdab8d560
commit a128336cf6
1 changed files with 2 additions and 2 deletions

View File

@ -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}