diff options
author | Emily Trau <13267947+emilytrau@users.noreply.github.com> | 2024-01-04 15:02:55 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-04 15:02:55 +1100 |
commit | bb4a1b268d3f8c17cf17b37721c807191ff32486 (patch) | |
tree | 630e58c98970d6801f5fe1b35cb59242dd5ee83b /pkgs | |
parent | d8de4fa89af6ce93ec968f42f349286ea1ced126 (diff) | |
parent | 08c667636a095e7c1ae3b96a97fdfc6f17490875 (diff) |
Merge pull request #242038 from emilytrau/maccy
maccy: init at 0.28.0
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/by-name/ma/maccy/package.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/by-name/ma/maccy/package.nix b/pkgs/by-name/ma/maccy/package.nix new file mode 100644 index 0000000000000..41ea87634a1b2 --- /dev/null +++ b/pkgs/by-name/ma/maccy/package.nix @@ -0,0 +1,37 @@ +{ lib +, stdenvNoCC +, fetchurl +, unzip +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "maccy"; + version = "0.28.0"; + + src = fetchurl { + url = "https://github.com/p0deje/Maccy/releases/download/${finalAttrs.version}/Maccy.app.zip"; + hash = "sha256-dxjt5skIHN6VlkWpcmj+ZSovVARuQETKoyKMkMtUhHQ="; + }; + + 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 Enzime ]; + platforms = platforms.darwin; + }; +}) |