pdf-oxide: init at 0.3.32 (#510942)

This commit is contained in:
Gaétan Lepage
2026-04-18 06:57:56 +00:00
committed by GitHub
+44
View File
@@ -0,0 +1,44 @@
{
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 ];
};
})