This is necessary to build on darwin using nix, as nix-darwin uses an older macOS SDK, built from Apple's open source releases. Signed-off-by: Peter Woodman <peter@shortbus.org>
* Extract powersupply linux code from collector common file. * Add Darwin powersupply collector. Signed-off-by: Alessio Caiazza <nolith@abisso.org>