summary refs log tree commit diff
path: root/pkgs/os-specific/darwin/apple-source-releases/libpthread/default.nix
blob: 650c6415defc3f6df548d2ada29c3d304ea4359a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv, appleDerivation, libdispatch, xnu }:

appleDerivation {
  propagatedBuildInputs = [ libdispatch xnu ];

  installPhase = ''
    mkdir -p $out/include/pthread/
    mkdir -p $out/include/sys/_types
    cp pthread/*.h $out/include/pthread/

    # This overwrites qos.h, and is probably not necessary, but I'll leave it here for now
    # cp private/*.h $out/include/pthread/

    cp -r sys $out/include
    cp -r sys/_pthread/*.h $out/include/sys/_types/
  '';

  meta = {
    platforms = stdenv.lib.platforms.darwin;
  };
}