2024-01-12 16:12:05 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
nix-update-script,
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
dirname = "pdfpc-extractor";
|
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "polylux2pdfpc";
|
2025-02-05 12:01:26 +00:00
|
|
|
version = "0.4.0";
|
2024-01-12 16:12:05 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2025-02-05 13:01:35 +00:00
|
|
|
owner = "polylux-typ";
|
2024-01-12 16:12:05 +01:00
|
|
|
repo = "polylux";
|
2025-07-31 06:38:56 +00:00
|
|
|
tag = "v${version}";
|
2024-01-12 16:12:05 +01:00
|
|
|
sparseCheckout = [ dirname ];
|
2025-02-05 12:01:26 +00:00
|
|
|
hash = "sha256-41FgRejonvVTmE89WGm0Cqumm8lb6kkfxtkWV74UKJA=";
|
2024-01-12 16:12:05 +01:00
|
|
|
};
|
|
|
|
sourceRoot = "${src.name}/${dirname}";
|
|
|
|
|
2025-01-23 08:45:31 +01:00
|
|
|
cargoHash = "sha256-9nA18f+Dwps45M/OIY0jtx7QgyJDTVUsPndFdNBKHCQ=";
|
2024-01-12 16:12:05 +01:00
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool to make pdfpc interpret slides created by polylux correctly";
|
2025-02-05 13:01:35 +00:00
|
|
|
homepage = "https://github.com/polylux-typ/polylux/tree/main/pdfpc-extractor";
|
2024-01-12 16:12:05 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
mainProgram = "polylux2pdfpc";
|
|
|
|
maintainers = [ maintainers.diogotcorreia ];
|
|
|
|
};
|
|
|
|
}
|