Merge pull request #262672 from ga1aksy/textsnatcher

textsnatcher: init at 2.0.0

authored by Weijia Wang and committed by GitHub 7e304c41 19e7d302

+62
+62
pkgs/by-name/te/textsnatcher/package.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , meson 5 + , ninja 6 + , vala 7 + , wrapGAppsHook 8 + , pkg-config 9 + , pantheon 10 + , libhandy 11 + , libportal 12 + , glib 13 + , gtk3 14 + , desktop-file-utils 15 + , scrot 16 + , tesseract 17 + }: 18 + 19 + stdenv.mkDerivation (finalAttrs: { 20 + pname = "textsnatcher"; 21 + version = "2.0.0"; 22 + 23 + src = fetchFromGitHub { 24 + owner = "RajSolai"; 25 + repo = "TextSnatcher"; 26 + rev = "v${finalAttrs.version}"; 27 + hash = "sha256-phqtPjwKB5BoCpL+cMeHvRLL76ZxQ5T74cpAsgN+/JM="; 28 + }; 29 + 30 + nativeBuildInputs = [ 31 + meson 32 + ninja 33 + vala 34 + pkg-config 35 + desktop-file-utils 36 + wrapGAppsHook 37 + ]; 38 + 39 + buildInputs = [ 40 + pantheon.granite 41 + libhandy 42 + libportal 43 + gtk3 44 + glib 45 + ]; 46 + 47 + preFixup = '' 48 + gappsWrapperArgs+=( 49 + --prefix PATH : ${lib.makeBinPath [ scrot tesseract ]} 50 + ) 51 + ''; 52 + 53 + meta = with lib; { 54 + description = "Copy Text from Images with ease, Perform OCR operations in seconds"; 55 + homepage = "https://textsnatcher.rf.gd/"; 56 + changelog = "https://github.com/RajSolai/TextSnatcher/releases/tag/v${finalAttrs.version}"; 57 + license = licenses.gpl3Only; 58 + maintainers = with maintainers; [ galaxy ]; 59 + mainProgram = "com.github.rajsolai.textsnatcher"; 60 + platforms = platforms.linux; 61 + }; 62 + })