nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 28 lines 603 B view raw
1{ 2 lib, 3 apple-sdk, 4 mkAppleDerivation, 5 stdenvNoCC, 6}: 7 8let 9 iokitUser = apple-sdk.sourceRelease "IOKitUser"; 10 11 privateHeaders = stdenvNoCC.mkDerivation { 12 name = "file_cmds-deps-private-headers"; 13 14 buildCommand = '' 15 install -D -t "$out/include/IOKit/pwr_mgt" \ 16 '${iokitUser}/pwr_mgt.subproj/IOPMLibPrivate.h' 17 ''; 18 }; 19in 20mkAppleDerivation { 21 releaseName = "PowerManagement"; 22 23 xcodeHash = "sha256-l6lm8aaiJg4H2BQVCjlFldpfhnmPAlsiMK7Cghzuh1E="; 24 25 env.NIX_CFLAGS_COMPILE = "-I${privateHeaders}/include"; 26 27 meta.description = "Contains the Darwin caffeinate command"; 28}