diff options
author | Randy Eckenrode <randy@largeandhighquality.com> | 2023-11-01 20:56:27 -0400 |
---|---|---|
committer | Randy Eckenrode <randy@largeandhighquality.com> | 2023-11-02 17:45:58 -0400 |
commit | 448aed9e81381c33377e0fcbf7b439f6555dfef8 (patch) | |
tree | c4b17f3000ef7268204c5eadead6548511dadcfa | |
parent | b1b0b6e3e76960d83239fc293cf5902adb01a91d (diff) | |
download | nixpkgs-448aed9e81381c33377e0fcbf7b439f6555dfef8.tar nixpkgs-448aed9e81381c33377e0fcbf7b439f6555dfef8.tar.gz nixpkgs-448aed9e81381c33377e0fcbf7b439f6555dfef8.tar.bz2 nixpkgs-448aed9e81381c33377e0fcbf7b439f6555dfef8.tar.lz nixpkgs-448aed9e81381c33377e0fcbf7b439f6555dfef8.tar.xz nixpkgs-448aed9e81381c33377e0fcbf7b439f6555dfef8.tar.zst nixpkgs-448aed9e81381c33377e0fcbf7b439f6555dfef8.zip |
darwin.apple_sdk: drop unnecessary dependencies
-rw-r--r-- | pkgs/os-specific/darwin/apple-sdk/default.nix | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/pkgs/os-specific/darwin/apple-sdk/default.nix b/pkgs/os-specific/darwin/apple-sdk/default.nix index 0c959695d77..5484ba5acb1 100644 --- a/pkgs/os-specific/darwin/apple-sdk/default.nix +++ b/pkgs/os-specific/darwin/apple-sdk/default.nix @@ -1,9 +1,6 @@ -{ stdenv, fetchurl, libxml2, xar, cpio, pkgs, python3Minimal, pbzx, lib, darwin-stubs, print-reexports }: +{ stdenv, fetchurl, cpio, pbzx, pkgs, lib, darwin-stubs, print-reexports }: let - xarMinimal = xar.override { - libxml2 = libxml2.override { pythonSupport = false; }; - }; # sadly needs to be exported because security_tool needs it sdk = stdenv.mkDerivation rec { pname = "MacOS_SDK"; @@ -19,27 +16,23 @@ let sha256 = "13xq34sb7383b37hwy076gnhf96prpk1b4087p87xnwswxbrisih"; }; - nativeBuildInputs = [ xarMinimal cpio python3Minimal pbzx ]; + nativeBuildInputs = [ cpio pbzx ]; outputs = [ "out" "dev" "man" ]; unpackPhase = '' - xar -x -f $src + pbzx $src | cpio -idm ''; + sourceRoot = "."; + installPhase = '' - start="$(pwd)" mkdir -p $out - cd $out - pbzx -n $start/Payload | cpio -idm - - mv usr/* . - rmdir usr - mv System/* . - rmdir System + cp -R System/Library $out + cp -R usr/* $out - pushd lib + pushd $out/lib cp ${darwin-stubs}/usr/lib/libcups*.tbd . ln -s libcups.2.tbd libcups.tbd ln -s libcupscgi.1.tbd libcupscgi.tbd |