2021-06-28 23:13:55 +00:00
|
|
|
{ appimageTools, lib, fetchurl }:
|
|
|
|
let
|
|
|
|
pname = "mathpix-snipping-tool";
|
2021-08-05 21:33:18 +00:00
|
|
|
version = "03.00.0050";
|
2021-06-28 23:13:55 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.mathpix.com/linux/Mathpix_Snipping_Tool-x86_64.v${version}.AppImage";
|
2021-08-05 21:33:18 +00:00
|
|
|
sha256 = "0bf4x6jffiqdss8vwy1qypv75zxi1bfc8rywsgp5qlsjq792plpb";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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" ];
|
|
|
|
};
|
|
|
|
}
|