depot/pkgs/by-name/po/polylux2pdfpc/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

34 lines
872 B
Nix

{ 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; {
description = "Tool to make pdfpc interpret slides created by polylux correctly";
homepage = "https://github.com/andreasKroepelin/polylux/tree/main/pdfpc-extractor";
license = licenses.mit;
mainProgram = "polylux2pdfpc";
maintainers = [ maintainers.diogotcorreia ];
};
}