2018-07-06 23:53:50 +01:00
|
|
|
{ appleDerivation, xcbuildHook, IOKit }:
|
2018-05-31 17:13:03 +01:00
|
|
|
|
|
|
|
appleDerivation {
|
2018-07-06 23:53:50 +01:00
|
|
|
nativeBuildInputs = [ xcbuildHook ];
|
|
|
|
buildInputs = [ IOKit ];
|
2019-10-27 13:03:25 +00:00
|
|
|
xcbuildFlags = [ "-target" "caffeinate" ];
|
2018-05-31 17:13:03 +01:00
|
|
|
installPhase = ''
|
|
|
|
install -D Products/Deployment/caffeinate $out/bin/caffeinate
|
|
|
|
'';
|
|
|
|
}
|