ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / ca / caffeine / package.nix
blob1e547a5533ba7ab9de5b93a090439ce60e125f45
1 { lib
2 , stdenvNoCC
3 , fetchurl
4 , undmg
5 }:
7 stdenvNoCC.mkDerivation (finalAttrs: {
8   pname = "caffeine";
9   version = "1.1.3";
11   src = fetchurl {
12     url = "https://github.com/IntelliScape/caffeine/releases/download/${finalAttrs.version}/Caffeine.dmg";
13     hash = "sha256-JA5auDKiXtCvQ67/0dZtxmPf6nwlJdkYwhTWEHmBoDs=";
14   };
16   sourceRoot = ".";
18   nativeBuildInputs = [ undmg ];
20   installPhase = ''
21     runHook preInstall
23     mkdir -p $out/Applications
24     cp -r *.app $out/Applications
26     runHook postInstall
27   '';
29   meta = with lib; {
30     description = "Don't let your Mac fall asleep";
31     homepage = "https://intelliscapesolutions.com/apps/caffeine";
32     license = licenses.mit;
33     maintainers = with maintainers; [ emilytrau ];
34     platforms = [ "x86_64-darwin" ];
35     sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
36   };