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

View file

@ -1,10 +1,10 @@
{ requireFile, targetPlatform, lib }: { buildPlatform, requireFile, targetPlatform, lib }:
let requireXcode = version: sha256: let requireXcode = version: sha256:
let let
xip = "Xcode_" + version + ".xip"; xip = "Xcode_" + version + ".xip";
# TODO(alexfmpe): Find out how to validate the .xip signature in Linux # TODO(alexfmpe): Find out how to validate the .xip signature in Linux
unxip = if targetPlatform.isDarwin unxip = if buildPlatform.isDarwin
then '' then ''
open -W ${xip} open -W ${xip}
rm -rf ${xip} rm -rf ${xip}