diff options
author | Jude Taylor <me@jude.bio> | 2015-10-26 12:38:57 -0700 |
---|---|---|
committer | Jude Taylor <me@jude.bio> | 2015-10-26 17:13:29 -0700 |
commit | 0a23e412b42c93df1c258a300109268f026e5456 (patch) | |
tree | a0de9c537403b4107fe682b903e7d82bf5ce7d6f /pkgs/os-specific/darwin | |
parent | 12277d2a38705f5eade2783c1d0bee4724dd6757 (diff) | |
download | nixlib-0a23e412b42c93df1c258a300109268f026e5456.tar nixlib-0a23e412b42c93df1c258a300109268f026e5456.tar.gz nixlib-0a23e412b42c93df1c258a300109268f026e5456.tar.bz2 nixlib-0a23e412b42c93df1c258a300109268f026e5456.tar.lz nixlib-0a23e412b42c93df1c258a300109268f026e5456.tar.xz nixlib-0a23e412b42c93df1c258a300109268f026e5456.tar.zst nixlib-0a23e412b42c93df1c258a300109268f026e5456.zip |
in darwin sdk, copy headers rather than linking them
Diffstat (limited to 'pkgs/os-specific/darwin')
-rw-r--r-- | pkgs/os-specific/darwin/apple-sdk/default.nix | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/pkgs/os-specific/darwin/apple-sdk/default.nix b/pkgs/os-specific/darwin/apple-sdk/default.nix index 11b9b4a83a3f..47dce7b6620c 100644 --- a/pkgs/os-specific/darwin/apple-sdk/default.nix +++ b/pkgs/os-specific/darwin/apple-sdk/default.nix @@ -59,11 +59,14 @@ let local dest="$out/Library/Frameworks/$path" local name="$(basename "$path" .framework)" local current="$(readlink "/System/Library/Frameworks/$path/Versions/Current")" + if [ -z "$current" ]; then + current=A + fi mkdir -p "$dest" pushd "$dest" >/dev/null - ln -s "${sdk}/Library/Frameworks/$path/Versions/$current/Headers" + cp -R "${sdk}/Library/Frameworks/$path/Versions/$current/Headers" . ln -s -L "/System/Library/Frameworks/$path/Versions/$current/$name" ln -s -L "/System/Library/Frameworks/$path/Versions/$current/Resources" @@ -157,13 +160,6 @@ in rec { f="$out/Library/Frameworks/QuartzCore.framework/Headers/CoreImage.h" substituteInPlace "$f" \ --replace "QuartzCore/../Frameworks/CoreImage.framework/Headers" "CoreImage" - - # CoreImage.framework's location varies by OSX version - for linkedFile in "$out/Library/Frameworks/QuartzCore.framework/Frameworks/CoreImage.framework"/*; do - link=$(readlink "$linkedFile" | sed 's,//,/A/,') - rm "$linkedFile" - ln -s "$link" "$linkedFile" - done ''; }); }; |