Unverified Commit 73617fb4 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

pdf-oxide: init at 0.3.32 (#510942)

parents 2e30f4fa 892294bf
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  rustPlatform,
  nix-update-script,
  versionCheckHook,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "pdf-oxide";
  version = "0.3.32";

  src = fetchFromGitHub {
    owner = "yfedoseev";
    repo = "pdf_oxide";
    tag = "v${finalAttrs.version}";
    hash = "sha256-z6dc+GWOovF31yhZIJsg/0FWmSHizk+BpipdrJmoxwI=";
  };

  cargoHash = "sha256-0GCBraW4m7/3xUbt8wLrEle/9vn1nOtyNqIwfn19vN8=";
  __structuredAttrs = true;

  cargoBuildFlags = [
    "--package=pdf_oxide_cli"
    "--package=pdf_oxide_mcp"
  ];

  nativeInstallCheckInputs = [ versionCheckHook ];
  doInstallCheck = true;

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Fastest PDF library for text extraction, image extraction, and markdown conversion";
    homepage = "https://github.com/yfedoseev/pdf_oxide";
    changelog = "https://github.com/yfedoseev/pdf_oxide/releases/tag/${finalAttrs.src.tag}";
    license = with lib.licenses; [
      mit
      asl20
    ];
    mainProgram = "pdf-oxide";
    maintainers = with lib.maintainers; [ daspk04 ];
  };
})