2021-02-05 17:12:51 +00:00
|
|
|
{ lib, appleDerivation, libdispatch, xnu }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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/
|
|
|
|
'';
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
appleHeaders = ''
|
|
|
|
pthread/introspection.h
|
|
|
|
pthread/pthread.h
|
|
|
|
pthread/pthread_impl.h
|
|
|
|
pthread/pthread_spis.h
|
|
|
|
pthread/qos.h
|
|
|
|
pthread/sched.h
|
|
|
|
pthread/spawn.h
|
|
|
|
sys/_pthread/_pthread_attr_t.h
|
|
|
|
sys/_pthread/_pthread_cond_t.h
|
|
|
|
sys/_pthread/_pthread_condattr_t.h
|
|
|
|
sys/_pthread/_pthread_key_t.h
|
|
|
|
sys/_pthread/_pthread_mutex_t.h
|
|
|
|
sys/_pthread/_pthread_mutexattr_t.h
|
|
|
|
sys/_pthread/_pthread_once_t.h
|
|
|
|
sys/_pthread/_pthread_rwlock_t.h
|
|
|
|
sys/_pthread/_pthread_rwlockattr_t.h
|
|
|
|
sys/_pthread/_pthread_t.h
|
|
|
|
sys/_pthread/_pthread_types.h
|
|
|
|
sys/_types/_pthread_attr_t.h
|
|
|
|
sys/_types/_pthread_cond_t.h
|
|
|
|
sys/_types/_pthread_condattr_t.h
|
|
|
|
sys/_types/_pthread_key_t.h
|
|
|
|
sys/_types/_pthread_mutex_t.h
|
|
|
|
sys/_types/_pthread_mutexattr_t.h
|
|
|
|
sys/_types/_pthread_once_t.h
|
|
|
|
sys/_types/_pthread_rwlock_t.h
|
|
|
|
sys/_types/_pthread_rwlockattr_t.h
|
|
|
|
sys/_types/_pthread_t.h
|
|
|
|
sys/_types/_pthread_types.h
|
|
|
|
sys/qos.h
|
|
|
|
sys/qos_private.h
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.darwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|