Files
nixpkgs/pkgs/by-name/de/decktape/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

44 lines
1.0 KiB
Nix

{
fetchFromGitHub,
buildNpmPackage,
lib,
chromium,
}:
buildNpmPackage rec {
name = "decktape";
version = "3.15.0";
src = fetchFromGitHub {
owner = "astefanutti";
repo = "decktape";
rev = "v${version}";
hash = "sha256-SsdjqkMEVD0pVgIZ9Upmrz/1KOWcb1KUy/v/xTCVGc0=";
};
npmDepsHash = "sha256-Z5fLGMvxVhM8nW81PQ5ZFPHK6m2uoYUv0A4XsTa3Z2Y=";
npmPackFlags = [ "--ignore-scripts" ];
dontNpmBuild = true;
env.PUPPETEER_SKIP_DOWNLOAD = 1;
postFixup = ''
wrapProgram $out/bin/decktape \
--add-flags "--chrome-path ${chromium}/bin/chromium" \
--set PATH ${
lib.makeBinPath [
chromium
]
}
'';
meta = {
description = "High-quality PDF exporter for HTML presentation frameworks";
mainProgram = "decktape";
homepage = "https://github.com/astefanutti/decktape";
changelog = "https://github.com/astefanutti/decktape/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fidgetingbits ];
};
}