summary refs log tree commit diff
path: root/lib/systems/default.nix
diff options
context:
space:
mode:
authorAndrew Childs <lorne@cons.org.nz>2021-02-05 16:24:43 +0900
committerAndrew Childs <lorne@cons.org.nz>2021-03-26 15:10:22 +0900
commit44f09ccabf645d1f079f71b541d7f1ac0a6b8848 (patch)
treec8be3933ef5fb02a56f31ce5de7705cc33b50a83 /lib/systems/default.nix
parent15151dabaf11bcf4a8b5cc7219f6d3e2435ca13f (diff)
downloadnixpkgs-44f09ccabf645d1f079f71b541d7f1ac0a6b8848.tar
nixpkgs-44f09ccabf645d1f079f71b541d7f1ac0a6b8848.tar.gz
nixpkgs-44f09ccabf645d1f079f71b541d7f1ac0a6b8848.tar.bz2
nixpkgs-44f09ccabf645d1f079f71b541d7f1ac0a6b8848.tar.lz
nixpkgs-44f09ccabf645d1f079f71b541d7f1ac0a6b8848.tar.xz
nixpkgs-44f09ccabf645d1f079f71b541d7f1ac0a6b8848.tar.zst
nixpkgs-44f09ccabf645d1f079f71b541d7f1ac0a6b8848.zip
darwin: move deployment target and sdk version to platform config
Diffstat (limited to 'lib/systems/default.nix')
-rw-r--r--lib/systems/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/systems/default.nix b/lib/systems/default.nix
index 1e38dbf531b..d16b19c03ca 100644
--- a/lib/systems/default.nix
+++ b/lib/systems/default.nix
@@ -112,6 +112,15 @@ rec {
         aarch64 = "arm64";
       }.${final.parsed.cpu.name} or final.parsed.cpu.name;
 
+      darwinPlatform =
+        if final.isMacOS then "macos"
+        else if final.isiOS then "ios"
+        else null;
+      # The canonical name for this attribute is darwinSdkVersion, but some
+      # platforms define the old name "sdkVer".
+      darwinSdkVersion = final.sdkVer or "10.12";
+      darwinMinVersion = final.darwinSdkVersion;
+
       emulator = pkgs: let
         qemu-user = pkgs.qemu.override {
           smartcardSupport = false;