File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments