Skip to content

Commit 20877aa

Browse files
decktape: init at 3.14.0 (NixOS#357118)
2 parents 2d56a4c + 5cb3a67 commit 20877aa

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
}

0 commit comments

Comments
 (0)