Merge pull request #242038 from emilytrau/maccy

maccy: init at 0.28.0

authored by Emily Trau and committed by GitHub bb4a1b26 d8de4fa8

+37
+37
pkgs/by-name/ma/maccy/package.nix
··· 1 + { lib 2 + , stdenvNoCC 3 + , fetchurl 4 + , unzip 5 + }: 6 + 7 + stdenvNoCC.mkDerivation (finalAttrs: { 8 + pname = "maccy"; 9 + version = "0.28.0"; 10 + 11 + src = fetchurl { 12 + url = "https://github.com/p0deje/Maccy/releases/download/${finalAttrs.version}/Maccy.app.zip"; 13 + hash = "sha256-dxjt5skIHN6VlkWpcmj+ZSovVARuQETKoyKMkMtUhHQ="; 14 + }; 15 + 16 + dontUnpack = true; 17 + 18 + nativeBuildInputs = [ unzip ]; 19 + 20 + installPhase = '' 21 + runHook preInstall 22 + 23 + mkdir -p $out/Applications 24 + unzip -d $out/Applications $src 25 + 26 + runHook postInstall 27 + ''; 28 + 29 + meta = with lib; { 30 + description = "Simple clipboard manager for macOS"; 31 + homepage = "https://maccy.app"; 32 + license = licenses.mit; 33 + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 34 + maintainers = with maintainers; [ emilytrau Enzime ]; 35 + platforms = platforms.darwin; 36 + }; 37 + })