mathpix-snipping-tool: 03.00.0072 -> 03.00.0138 (#456760)
This commit is contained in:
@@ -2706,6 +2706,12 @@
|
||||
github = "Axler1";
|
||||
githubId = 69816272;
|
||||
};
|
||||
axodentally = {
|
||||
name = "Henri Wagner";
|
||||
email = "axo@frankfurt.ccc.de";
|
||||
github = "axodentally";
|
||||
githubId = 24368475;
|
||||
};
|
||||
ayazhafiz = {
|
||||
email = "ayaz.hafiz.1@gmail.com";
|
||||
github = "hafiz";
|
||||
|
||||
@@ -2,14 +2,15 @@
|
||||
appimageTools,
|
||||
lib,
|
||||
fetchurl,
|
||||
makeWrapper,
|
||||
}:
|
||||
let
|
||||
pname = "mathpix-snipping-tool";
|
||||
version = "03.00.0072";
|
||||
version = "03.00.0138";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download.mathpix.com/linux/Mathpix_Snipping_Tool-x86_64.v${version}.AppImage";
|
||||
sha256 = "1igg8wnshmg9f23qqw1gqb85h1aa3461c1n7dmgw6sn4lrrrh5ms";
|
||||
sha256 = "sha256-29iLdrWxqLL7uRfHae8Mq+w9yaGtM9Y5vRLzYESgzBs=";
|
||||
};
|
||||
|
||||
appimageContents = appimageTools.extract { inherit pname version src; };
|
||||
@@ -17,17 +18,24 @@ in
|
||||
appimageTools.wrapType2 {
|
||||
inherit pname version src;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
extraInstallCommands = ''
|
||||
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
|
||||
|
||||
cp -r ${appimageContents}/usr/share/icons $out/share
|
||||
|
||||
wrapProgram $out/bin/${pname} --set QT_QPA_PLATFORM xcb
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "OCR tool to convert pictures to LaTeX";
|
||||
homepage = "https://mathpix.com/";
|
||||
license = licenses.unfree;
|
||||
maintainers = [ maintainers.hiro98 ];
|
||||
maintainers = [
|
||||
maintainers.hiro98
|
||||
maintainers.axodentally
|
||||
];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
mainProgram = "mathpix-snipping-tool";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user