mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
35 lines
872 B
Nix
35 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 ];
|
|
};
|
|
}
|