mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
mathpix-snipping-tool: init at 03.00.0025
This commit is contained in:
parent
5a409e8d4a
commit
1ac2d6141c
31
pkgs/tools/misc/mathpix-snipping-tool/default.nix
Normal file
31
pkgs/tools/misc/mathpix-snipping-tool/default.nix
Normal 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" ];
|
||||
};
|
||||
}
|
|
@ -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;*/ };
|
||||
|
|
Loading…
Reference in a new issue