Use buildPlatform instead of targetPlatform for unxip instructions
This commit is contained in:
parent
0fdab8d560
commit
a128336cf6
1 changed files with 2 additions and 2 deletions
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue