841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
31 lines
898 B
Nix
31 lines
898 B
Nix
{ 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" ];
|
|
};
|
|
}
|