about summary refs log tree commit diff
path: root/pkgs/os-specific/darwin/apple-source-releases/libpthread/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/os-specific/darwin/apple-source-releases/libpthread/default.nix')
-rw-r--r--pkgs/os-specific/darwin/apple-source-releases/libpthread/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/os-specific/darwin/apple-source-releases/libpthread/default.nix b/pkgs/os-specific/darwin/apple-source-releases/libpthread/default.nix
index 027784e2ea6d..50794814aa0f 100644
--- a/pkgs/os-specific/darwin/apple-source-releases/libpthread/default.nix
+++ b/pkgs/os-specific/darwin/apple-source-releases/libpthread/default.nix
@@ -6,8 +6,12 @@ appleDerivation {
   propagatedBuildInputs = [ libdispatch xnu ];
 
   installPhase = ''
-    mkdir -p $out/include/pthread
+    mkdir -p $out/include/pthread/
+    mkdir -p $out/include/sys/_types
     cp pthread/*.h $out/include/pthread/
     cp private/*.h $out/include/pthread/
+    cp -r sys $out/include
+    cp -r sys/_pthread/*.h $out/include/sys/_types/
+
   '';
 }