OSX-SDK: Is mig (Mach Interface Generator) packaged?

I am working on porting the honggfuzz derivation to Darwin. As part of the build a tool called mig is used to generate RPC code.

I am not very familiar with how Darwin tooling is packaged in Nix. I know nixpkgs contains an xcode derivation and darwinTools is a thing, but neither seem to contain a mig executable. Is there a package that contains mig for Darwin?

mig is available in the darwin.bootstrap_cmds package. The stdenv documentstion (especially for 24.11) has information on packaging applications for Darwin.

Thanks so much! Especially for the pointer to the 24.11 documentation. Its wayy better than the currently stable documentation.

Sidenote in case someone finds this post in the future: I gave up on the patch since it turns out that upstream’s Darwin support is pretty bad.

1 Like