Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 38 lines 855 B view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchurl, 5 undmg, 6}: 7 8stdenvNoCC.mkDerivation (finalAttrs: { 9 pname = "caffeine"; 10 version = "1.1.3"; 11 12 src = fetchurl { 13 url = "https://github.com/IntelliScape/caffeine/releases/download/${finalAttrs.version}/Caffeine.dmg"; 14 hash = "sha256-JA5auDKiXtCvQ67/0dZtxmPf6nwlJdkYwhTWEHmBoDs="; 15 }; 16 17 sourceRoot = "."; 18 19 nativeBuildInputs = [ undmg ]; 20 21 installPhase = '' 22 runHook preInstall 23 24 mkdir -p $out/Applications 25 cp -r *.app $out/Applications 26 27 runHook postInstall 28 ''; 29 30 meta = with lib; { 31 description = "Don't let your Mac fall asleep"; 32 homepage = "https://intelliscapesolutions.com/apps/caffeine"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ emilytrau ]; 35 platforms = [ "x86_64-darwin" ]; 36 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 37 }; 38})