2015-02-08 06:53:52 +00:00
|
|
|
{ stdenv, appleDerivation, libdispatch, xnu }:
|
|
|
|
|
|
|
|
appleDerivation {
|
|
|
|
propagatedBuildInputs = [ libdispatch xnu ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2016-08-24 12:35:30 +01:00
|
|
|
mkdir -p $out/include/pthread/
|
|
|
|
mkdir -p $out/include/sys/_types
|
2015-02-08 06:53:52 +00:00
|
|
|
cp pthread/*.h $out/include/pthread/
|
2016-08-24 12:35:30 +01:00
|
|
|
|
|
|
|
# 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/
|
2015-02-08 06:53:52 +00:00
|
|
|
'';
|
2017-09-04 17:04:05 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.darwin;
|
|
|
|
};
|
2015-02-08 06:53:52 +00:00
|
|
|
}
|