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