darwin.apple-sdk: drop appleSdkVersion

In fact no one is using appleSdkVersion, and stdenv is decoupled with sdk.
This commit is contained in:
Monson Shao
2021-01-21 00:26:16 +08:00
parent a884b21822
commit 2467f5e4d2
2 changed files with 3 additions and 10 deletions
@@ -1,15 +1,10 @@
{ stdenv, fetchurl, xar, cpio, pkgs, python3, pbzx, lib, darwin-stubs, print-reexports }:
let version = "10.12"; in
# Ensure appleSdkVersion is up to date.
assert stdenv.isDarwin -> stdenv.appleSdkVersion == version;
let
# sadly needs to be exported because security_tool needs it
sdk = stdenv.mkDerivation rec {
pname = "MacOS_SDK";
inherit version;
version = "10.12";
# This URL comes from https://swscan.apple.com/content/catalogs/others/index-10.12.merged-1.sucatalog, which we found by:
# 1. Google: site:swscan.apple.com and look for a name that seems appropriate for your version