mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 06:05:13 +00:00
11 lines
265 B
Nix
11 lines
265 B
Nix
{ appleDerivation, xcbuildHook, IOKit }:
|
|
|
|
appleDerivation {
|
|
nativeBuildInputs = [ xcbuildHook ];
|
|
buildInputs = [ IOKit ];
|
|
xcbuildFlags = [ "-target" "caffeinate" ];
|
|
installPhase = ''
|
|
install -D Products/Deployment/caffeinate $out/bin/caffeinate
|
|
'';
|
|
}
|