Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
28 lines
603 B
Nix
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";
|
|
}
|