0534ceac81
Not every package that needs xcbuild will want to use its build phase. I have moved the xcbuild setup hook to the new attribute xcbuildHook. This means that dontUseXcbuild is no longer needed. If you just need to call xcbuild on its own you can just refer to xcbuild.
10 lines
259 B
Nix
10 lines
259 B
Nix
{ appleDerivation, xcbuildHook, IOKit }:
|
|
|
|
appleDerivation {
|
|
nativeBuildInputs = [ xcbuildHook ];
|
|
buildInputs = [ IOKit ];
|
|
xcbuildFlags = "-target caffeinate";
|
|
installPhase = ''
|
|
install -D Products/Deployment/caffeinate $out/bin/caffeinate
|
|
'';
|
|
}
|