2024-01-25 14:12:00 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
dirname = "pdfpc-extractor";
|
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "polylux2pdfpc";
|
|
|
|
version = "0.3.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "andreasKroepelin";
|
|
|
|
repo = "polylux";
|
|
|
|
rev = "v${version}";
|
|
|
|
sparseCheckout = [ dirname ];
|
|
|
|
hash = "sha256-GefX7XsUfOMCp2THstSizRGpKAoq7yquVukWQjGuFgc=";
|
|
|
|
};
|
|
|
|
sourceRoot = "${src.name}/${dirname}";
|
|
|
|
|
|
|
|
cargoHash = "sha256-vmCaQxPkzz1ZVmtX7L3VeQb3kWhVqyPoQ1NrTSiJN9Y=";
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool to make pdfpc interpret slides created by polylux correctly";
|
2024-01-25 14:12:00 +00:00
|
|
|
homepage = "https://github.com/andreasKroepelin/polylux/tree/main/pdfpc-extractor";
|
|
|
|
license = licenses.mit;
|
|
|
|
mainProgram = "polylux2pdfpc";
|
|
|
|
maintainers = [ maintainers.diogotcorreia ];
|
|
|
|
};
|
|
|
|
}
|