Merge pull request #323232 from matteo-pacini/keycastr

keycastr: init at 0.9.18
This commit is contained in:
Sandro 2024-07-07 17:35:26 +02:00 committed by GitHub
commit a9e45a7bf5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,35 @@
{
stdenvNoCC,
lib,
fetchurl,
unzip,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "keycastr";
version = "0.9.18";
src = fetchurl {
url = "https://github.com/keycastr/keycastr/releases/download/v${finalAttrs.version}/KeyCastr.app.zip";
hash = "sha256-q12c/W0yGoVL+wx+T/gaevx2P0Xwcv0a0FMv7bKfUnE=";
};
sourceRoot = ".";
nativeBuildInputs = [ unzip ];
installPhase = ''
runHook preInstall
mkdir -p $out/Applications
cp -r KeyCastr.app $out/Applications/
runHook postInstall
'';
meta = {
homepage = "https://github.com/keycastr/keycastr";
description = "Open-source keystroke visualizer";
license = lib.licenses.bsd3;
platforms = lib.platforms.darwin;
maintainers = with lib.maintainers; [ matteopacini ];
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
})