decktape: init at 3.14.0 (#357118)

authored by

Sandro and committed by
GitHub
20877aa2 2d56a4c4

+43
+43
pkgs/by-name/de/decktape/package.nix
···
··· 1 + { 2 + fetchFromGitHub, 3 + buildNpmPackage, 4 + lib, 5 + chromium, 6 + }: 7 + buildNpmPackage rec { 8 + name = "decktape"; 9 + version = "3.14.0"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "astefanutti"; 13 + repo = "decktape"; 14 + rev = "v${version}"; 15 + hash = "sha256-V7JoYtwP7iQYFi/WhFpkELs7mNKF6CqrMyjWhxLkcTA="; 16 + }; 17 + 18 + npmDepsHash = "sha256-rahrIhB0GhqvzN2Vu6137Cywr19aQ70gVbNSSYzFD+s="; 19 + npmPackFlags = [ "--ignore-scripts" ]; 20 + 21 + dontNpmBuild = true; 22 + 23 + env.PUPPETEER_SKIP_DOWNLOAD = 1; 24 + 25 + postFixup = '' 26 + wrapProgram $out/bin/decktape \ 27 + --add-flags "--chrome-path ${chromium}/bin/chromium" \ 28 + --set PATH ${ 29 + lib.makeBinPath [ 30 + chromium 31 + ] 32 + } 33 + ''; 34 + 35 + meta = { 36 + description = "High-quality PDF exporter for HTML presentation frameworks"; 37 + mainProgram = "decktape"; 38 + homepage = "https://github.com/astefanutti/decktape"; 39 + changelog = "https://github.com/astefanutti/decktape/releases/tag/v${version}"; 40 + license = lib.licenses.mit; 41 + maintainers = with lib.maintainers; [ fidgetingbits ]; 42 + }; 43 + }