Add darwin support to libbsd
Based on original work GitHub user JackieXie168 here:
https://github.com/JackieXie168/libbsd
This has been updated a few times to keep up-to-date with libbsd in Nixpkgs. It would be great if we could get it included here so we don’t have to keep track of patches.