summary refs log tree commit diff
path: root/pkgs/os-specific/darwin/apple-sdk
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-07-02 17:49:59 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2018-07-02 17:51:38 -0400
commitdb414a2f5e3a7e7ffd84649e979b628da3cb26ee (patch)
treee95246068ede9a9eaaed0a4f40bc43eb960433ee /pkgs/os-specific/darwin/apple-sdk
parent907d7518d8d86a81fd2f7c6b85343c29ce6acde4 (diff)
downloadnixpkgs-db414a2f5e3a7e7ffd84649e979b628da3cb26ee.tar
nixpkgs-db414a2f5e3a7e7ffd84649e979b628da3cb26ee.tar.gz
nixpkgs-db414a2f5e3a7e7ffd84649e979b628da3cb26ee.tar.bz2
nixpkgs-db414a2f5e3a7e7ffd84649e979b628da3cb26ee.tar.lz
nixpkgs-db414a2f5e3a7e7ffd84649e979b628da3cb26ee.tar.xz
nixpkgs-db414a2f5e3a7e7ffd84649e979b628da3cb26ee.tar.zst
nixpkgs-db414a2f5e3a7e7ffd84649e979b628da3cb26ee.zip
xpc: copy instead of linking to sdk
This prevents the apple sdk from coming into security tool

Fixes #42836
Diffstat (limited to 'pkgs/os-specific/darwin/apple-sdk')
-rw-r--r--pkgs/os-specific/darwin/apple-sdk/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/os-specific/darwin/apple-sdk/default.nix b/pkgs/os-specific/darwin/apple-sdk/default.nix
index a62182f1d34..d4a48b9c372 100644
--- a/pkgs/os-specific/darwin/apple-sdk/default.nix
+++ b/pkgs/os-specific/darwin/apple-sdk/default.nix
@@ -160,8 +160,8 @@ in rec {
       installPhase = ''
         mkdir -p $out/include
         pushd $out/include >/dev/null
-        ln -s "${lib.getDev sdk}/include/xpc"
-        ln -s "${lib.getDev sdk}/include/launch.h"
+        cp -r "${lib.getDev sdk}/include/xpc" $out/include/xpc
+        cp "${lib.getDev sdk}/include/launch.h" $out/include/launch.h
         popd >/dev/null
       '';
     };