22 lines
522 B
Nix
22 lines
522 B
Nix
{ lib, 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 = lib.platforms.darwin;
|
|
};
|
|
}
|