nixpkgs/pkgs/by-name/ma/maccy/package.nix
Sebastián Mancilla 96973a69f3
Merge pull request #323636 from Brawl345/maccy-update-0.31.0
maccy: 0.28.0 -> 0.31.0
2024-08-15 22:04:19 -04:00

37 lines
813 B
Nix

{ lib
, stdenvNoCC
, fetchurl
, unzip
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "maccy";
version = "0.31.0";
src = fetchurl {
url = "https://github.com/p0deje/Maccy/releases/download/${finalAttrs.version}/Maccy.app.zip";
hash = "sha256-vjfFtlX0b3howUc2bTR/pqXwnzjXpK6qPR8+81sANTs=";
};
dontUnpack = true;
nativeBuildInputs = [ unzip ];
installPhase = ''
runHook preInstall
mkdir -p $out/Applications
unzip -d $out/Applications $src
runHook postInstall
'';
meta = with lib; {
description = "Simple clipboard manager for macOS";
homepage = "https://maccy.app";
license = licenses.mit;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
maintainers = with maintainers; [ emilytrau ];
platforms = platforms.darwin;
};
})