2023-07-07 12:57:01 +02:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchurl
|
|
|
|
, unzip
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
pname = "maccy";
|
2024-06-30 20:14:55 +02:00
|
|
|
version = "0.31.0";
|
2023-07-07 12:57:01 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/p0deje/Maccy/releases/download/${finalAttrs.version}/Maccy.app.zip";
|
2024-06-30 20:14:55 +02:00
|
|
|
hash = "sha256-vjfFtlX0b3howUc2bTR/pqXwnzjXpK6qPR8+81sANTs=";
|
2023-07-07 12:57:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
2024-07-09 06:21:18 +02:00
|
|
|
maintainers = with maintainers; [ emilytrau ];
|
2023-07-07 12:57:01 +02:00
|
|
|
platforms = platforms.darwin;
|
|
|
|
};
|
|
|
|
})
|