···11{ lib
22, pkgs
33-, hostPlatform
43, stdenvNoCC
54, fetchFromGitHub
65, pkgsCross
···8798stdenvNoCC.mkDerivation (finalAttrs:
109 let
1111- inherit (hostPlatform.uname) system;
1010+ inherit (stdenvNoCC.hostPlatform.uname) system;
1211 # DXVK needs to be a separate derivation because it’s actually a set of DLLs for Windows that
1312 # needs to be built with a cross-compiler.
1413 dxvk32 = pkgsCross.mingw32.callPackage ./dxvk.nix {
+3-3
pkgs/os-specific/darwin/xcode/default.nix
···11-{ buildPlatform, requireFile, targetPlatform, lib }:
11+{ stdenv, requireFile, 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 buildPlatform.isDarwin
77+ unxip = if stdenv.buildPlatform.isDarwin
88 then ''
99 open -W ${xip}
1010 rm -rf ${xip}
···6666 xcode_12_1 = requireXcode "12.1" "1widy74dk43wx8iqgd7arzf6q4kzdmaz8pfwymzs8chnq9dqr3wp";
6767 xcode_12_2 = requireXcode "12.2" "17i0wf4pwrxwfgjw7rpw9mcd59nkmys1k5h2rqsw81snzyxy9j0v";
6868 xcode_12_3 = requireXcode "12.3" "0kwf1y4llysf1p0nsbqyzccn7d77my0ldagr5fi3by4k0xy3d189";
6969- xcode = self."xcode_${lib.replaceStrings ["."] ["_"] (if (targetPlatform ? xcodeVer) then targetPlatform.xcodeVer else "12.3")}";
6969+ xcode = self."xcode_${lib.replaceStrings ["."] ["_"] (if (stdenv.targetPlatform ? xcodeVer) then stdenv.targetPlatform.xcodeVer else "12.3")}";
7070})
7171