depot/third_party/nixpkgs/pkgs/by-name/po/polylux2pdfpc/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

36 lines
898 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
}:
let
dirname = "pdfpc-extractor";
in
rustPlatform.buildRustPackage rec {
pname = "polylux2pdfpc";
version = "0.4.0";
src = fetchFromGitHub {
owner = "polylux-typ";
repo = "polylux";
rev = "v${version}";
sparseCheckout = [ dirname ];
hash = "sha256-41FgRejonvVTmE89WGm0Cqumm8lb6kkfxtkWV74UKJA=";
};
sourceRoot = "${src.name}/${dirname}";
useFetchCargoVendor = true;
cargoHash = "sha256-9nA18f+Dwps45M/OIY0jtx7QgyJDTVUsPndFdNBKHCQ=";
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Tool to make pdfpc interpret slides created by polylux correctly";
homepage = "https://github.com/polylux-typ/polylux/tree/main/pdfpc-extractor";
license = licenses.mit;
mainProgram = "polylux2pdfpc";
maintainers = [ maintainers.diogotcorreia ];
};
}