1 { lib, appleDerivation', stdenvNoCC }:
3 appleDerivation' stdenvNoCC (finalAttrs: {
7 mkdir -p $out/include/dispatch $out/include/os
9 # Move these headers so CF can find <os/voucher_private.h>
10 cp -r private/*.h $out/include/dispatch
12 cp -r dispatch/*.h $out/include/dispatch
13 cp -r os/object*.h $out/include/os
15 # gcc compatibility. Source: https://stackoverflow.com/a/28014302/3714556
16 substituteInPlace $out/include/dispatch/object.h \
17 --replace-fail 'typedef void (^dispatch_block_t)(void);' \
19 typedef void (^dispatch_block_t)(void);
21 typedef void* dispatch_block_t;
30 dispatch/data_private.h
33 dispatch/introspection.h
34 dispatch/introspection_private.h
37 dispatch/layout_private.h
38 dispatch/mach_private.h
43 dispatch/queue_private.h
46 dispatch/source_private.h
49 + lib.optionalString (lib.versionAtLeast "1271.40.12" finalAttrs.version) ''
50 dispatch/time_private.h
52 dispatch/workloop_private.h