2021-06-28 23:13:55 +00:00
|
|
|
{ appimageTools, lib, fetchurl }:
|
|
|
|
let
|
|
|
|
pname = "mathpix-snipping-tool";
|
2021-10-04 12:37:57 +00:00
|
|
|
version = "03.00.0072";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.mathpix.com/linux/Mathpix_Snipping_Tool-x86_64.v${version}.AppImage";
|
2021-10-04 12:37:57 +00:00
|
|
|
sha256 = "1igg8wnshmg9f23qqw1gqb85h1aa3461c1n7dmgw6sn4lrrrh5ms";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
appimageContents = appimageTools.extract { inherit pname version src; };
|
2021-06-28 23:13:55 +00:00
|
|
|
in appimageTools.wrapType2 {
|
2024-05-15 15:35:15 +00:00
|
|
|
inherit pname version src;
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
|
|
|
|
|
|
|
|
cp -r ${appimageContents}/usr/share/icons $out/share
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-13 08:15:51 +00:00
|
|
|
description = "OCR tool to convert pictures to LaTeX";
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://mathpix.com/";
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = [ maintainers.hiro98 ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "mathpix-snipping-tool";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
}
|