deck-app: init at 1.4.5

This commit is contained in:
Myzel394
2026-04-02 13:19:40 +02:00
parent 8d8c1fa5b4
commit 52af425964

View File

@@ -0,0 +1,50 @@
{
lib,
stdenvNoCC,
fetchurl,
undmg,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "deck-app";
version = "1.4.5";
src = fetchurl {
url = "https://github.com/yuzeguitarist/Deck/releases/download/v${finalAttrs.version}/Deck.dmg";
hash = "sha256-U5iMoQZGycwiiehxKUB3iohvzAh42gkC1sk3AJ62Ujs=";
};
nativeBuildInputs = [ undmg ];
sourceRoot = ".";
installPhase = ''
runHook preInstall
mkdir -p $out/Applications
cp -r *.app $out/Applications
runHook postInstall
'';
dontBuild = true;
dontFixup = true;
strictDeps = true;
__structuredAttrs = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Deck is a modern, native, privacy-first clipboard manager for macOS.";
homepage = "https://deckclip.app/";
changelog = "https://github.com/yuzeguitarist/Deck/releases/tag/v${finalAttrs.version}";
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
platforms = lib.platforms.darwin;
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ myzel394 ];
# Deck provides a CLI tool that can be enabled in the app settings.
mainProgram = "deckclip";
};
})