Merge pull request #299032 from DontEatOreo/darwin-mousecape

mousecape: init at 1813

authored by Pol Dellaiera and committed by GitHub 71df962d 9d41ef1e

+38
+38
pkgs/os-specific/darwin/mousecape/default.nix
··· 1 + { lib 2 + , stdenvNoCC 3 + , fetchurl 4 + , unzip 5 + }: 6 + 7 + stdenvNoCC.mkDerivation (finalAttrs: { 8 + pname = "mousecape"; 9 + version = "1813"; 10 + 11 + src = fetchurl { 12 + url = "https://github.com/alexzielenski/Mousecape/releases/download/${finalAttrs.version}/Mousecape_${finalAttrs.version}.zip"; 13 + hash = "sha256-lp7HFGr1J+iQCUWVDplF8rFcTrGf+DX4baYzLsUi/9I="; 14 + }; 15 + 16 + sourceRoot = "."; 17 + 18 + nativeBuildInputs = [ unzip ]; 19 + 20 + installPhase = '' 21 + runHook preInstall 22 + 23 + mkdir -p $out/Applications 24 + mv Mousecape.app $out/Applications 25 + 26 + runHook postInstall 27 + ''; 28 + 29 + meta = { 30 + description = "A cursor manager for macOS built using private, nonintrusive CoreGraphics APIs"; 31 + homepage = "https://github.com/alexzielenski/Mousecape"; 32 + license = with lib; licenses.free; 33 + maintainers = with lib; with maintainers; [ DontEatOreo ]; 34 + platforms = with lib; platforms.darwin; 35 + sourceProvenance = with lib; with sourceTypes; [ binaryNativeCode ]; 36 + }; 37 + }) 38 +