trex: init at 2.0.0 (#534313)

This commit is contained in:
Oleksii Filonenko
2026-06-22 17:56:35 +00:00
committed by GitHub
+43
View File
@@ -0,0 +1,43 @@
{
lib,
stdenvNoCC,
fetchurl,
nix-update-script,
unzip,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "trex";
version = "2.0.0";
__structuredAttrs = true;
strictDeps = true;
src = fetchurl {
url = "https://github.com/amebalabs/TRex/releases/download/v${finalAttrs.version}/TRex-${finalAttrs.version}.zip";
hash = "sha256-To3vxoDapuCcstq6V2qiQ2g8d1uTqVEM5fElRNIi3k0=";
};
sourceRoot = ".";
nativeBuildInputs = [ unzip ];
installPhase = ''
runHook preInstall
mkdir -p $out/Applications
cp -r *.app $out/Applications
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Copy any text on your screen using OCR";
homepage = "https://github.com/amebalabs/TRex";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ Br1ght0ne ];
platforms = lib.platforms.darwin;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
})