depot/pkgs/os-specific/darwin/apple-source-releases/PowerManagement/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

28 lines
603 B
Nix

{
lib,
apple-sdk,
mkAppleDerivation,
stdenvNoCC,
}:
let
iokitUser = apple-sdk.sourceRelease "IOKitUser";
privateHeaders = stdenvNoCC.mkDerivation {
name = "file_cmds-deps-private-headers";
buildCommand = ''
install -D -t "$out/include/IOKit/pwr_mgt" \
'${iokitUser}/pwr_mgt.subproj/IOPMLibPrivate.h'
'';
};
in
mkAppleDerivation {
releaseName = "PowerManagement";
xcodeHash = "sha256-yonvCPa4lJZ9VOO5BIcd0fLsnr0n2v/SHrLTlAJq+q0=";
env.NIX_CFLAGS_COMPILE = "-I${privateHeaders}/include";
meta.description = "Contains the Darwin caffeinate command";
}