mathpix-snipping-tool: init at 03.00.0025

This commit is contained in:
Valentin Boettcher 2021-06-11 15:25:32 +02:00
parent 5a409e8d4a
commit 1ac2d6141c
No known key found for this signature in database
GPG Key ID: C22D4DE4D7B32D19
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ appimageTools, lib, fetchurl }:
let
pname = "mathpix-snipping-tool";
version = "03.00.0025";
name = "${pname}-${version}";
src = fetchurl {
url = "https://download.mathpix.com/linux/Mathpix_Snipping_Tool-x86_64.v${version}.AppImage";
sha256 = "0p39rsmjfz3m5s3k9pmmkqbp8f21s1cwjgspz8m47dq5jjls8ay8";
};
appimageContents = appimageTools.extract { inherit name src; };
in appimageTools.wrapType2 {
inherit name src;
extraInstallCommands = ''
mv $out/bin/${name} $out/bin/${pname}
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
cp -r ${appimageContents}/usr/share/icons $out/share
'';
meta = with lib; {
description = "OCR tool to convert pictures to LaTeX.";
homepage = "https://mathpix.com/";
license = licenses.unfree;
maintainers = [ maintainers.hiro98 ];
platforms = [ "x86_64-linux" ];
};
}

View File

@ -6311,6 +6311,8 @@ in
inherit (darwin.apple_sdk.frameworks) Security;
};
mathpix-snipping-tool = callPackage ../tools/misc/mathpix-snipping-tool { };
/* Python 3.8 is currently broken with matrix-synapse since `python38Packages.bleach` fails
(https://github.com/NixOS/nixpkgs/issues/76093) */
matrix-synapse = callPackage ../servers/matrix-synapse { /*python3 = python38;*/ };