···1{ lib
2, pkgs
3-, hostPlatform
4, stdenvNoCC
5, fetchFromGitHub
6, pkgsCross
···89stdenvNoCC.mkDerivation (finalAttrs:
10 let
11- inherit (hostPlatform.uname) system;
12 # DXVK needs to be a separate derivation because it’s actually a set of DLLs for Windows that
13 # needs to be built with a cross-compiler.
14 dxvk32 = pkgsCross.mingw32.callPackage ./dxvk.nix {
···1{ lib
2, pkgs
03, stdenvNoCC
4, fetchFromGitHub
5, pkgsCross
···78stdenvNoCC.mkDerivation (finalAttrs:
9 let
10+ inherit (stdenvNoCC.hostPlatform.uname) system;
11 # DXVK needs to be a separate derivation because it’s actually a set of DLLs for Windows that
12 # needs to be built with a cross-compiler.
13 dxvk32 = pkgsCross.mingw32.callPackage ./dxvk.nix {
+3-3
pkgs/os-specific/darwin/xcode/default.nix
···1-{ buildPlatform, requireFile, targetPlatform, lib }:
23let requireXcode = version: sha256:
4 let
5 xip = "Xcode_" + version + ".xip";
6 # TODO(alexfmpe): Find out how to validate the .xip signature in Linux
7- unxip = if buildPlatform.isDarwin
8 then ''
9 open -W ${xip}
10 rm -rf ${xip}
···66 xcode_12_1 = requireXcode "12.1" "1widy74dk43wx8iqgd7arzf6q4kzdmaz8pfwymzs8chnq9dqr3wp";
67 xcode_12_2 = requireXcode "12.2" "17i0wf4pwrxwfgjw7rpw9mcd59nkmys1k5h2rqsw81snzyxy9j0v";
68 xcode_12_3 = requireXcode "12.3" "0kwf1y4llysf1p0nsbqyzccn7d77my0ldagr5fi3by4k0xy3d189";
69- xcode = self."xcode_${lib.replaceStrings ["."] ["_"] (if (targetPlatform ? xcodeVer) then targetPlatform.xcodeVer else "12.3")}";
70})
71
···1+{ stdenv, requireFile, lib }:
23let requireXcode = version: sha256:
4 let
5 xip = "Xcode_" + version + ".xip";
6 # TODO(alexfmpe): Find out how to validate the .xip signature in Linux
7+ unxip = if stdenv.buildPlatform.isDarwin
8 then ''
9 open -W ${xip}
10 rm -rf ${xip}
···66 xcode_12_1 = requireXcode "12.1" "1widy74dk43wx8iqgd7arzf6q4kzdmaz8pfwymzs8chnq9dqr3wp";
67 xcode_12_2 = requireXcode "12.2" "17i0wf4pwrxwfgjw7rpw9mcd59nkmys1k5h2rqsw81snzyxy9j0v";
68 xcode_12_3 = requireXcode "12.3" "0kwf1y4llysf1p0nsbqyzccn7d77my0ldagr5fi3by4k0xy3d189";
69+ xcode = self."xcode_${lib.replaceStrings ["."] ["_"] (if (stdenv.targetPlatform ? xcodeVer) then stdenv.targetPlatform.xcodeVer else "12.3")}";
70})
71