nixpkgs-suyu/pkgs/os-specific/darwin/apple-source-releases/PowerManagement/default.nix

10 lines
265 B
Nix

{ appleDerivation, xcbuildHook, IOKit }:
appleDerivation {
nativeBuildInputs = [ xcbuildHook ];
buildInputs = [ IOKit ];
xcbuildFlags = [ "-target" "caffeinate" ];
installPhase = ''
install -D Products/Deployment/caffeinate $out/bin/caffeinate
'';
}