Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6212342f2e80
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 35da03c29860
Choose a head ref
  • 4 commits
  • 5 files changed
  • 2 contributors

Commits on Jul 17, 2020

  1. puppeteer-cli: init

    chessai committed Jul 17, 2020
    Copy the full SHA
    eaa61e3 View commit details

Commits on Jul 19, 2020

  1. Copy the full SHA
    a7fff1a View commit details
  2. Copy the full SHA
    ba32ac1 View commit details

Commits on Jan 15, 2021

  1. Merge pull request #93321 from chessai/puppeteer-init

    puppeteer-cli: init
    7c6f434c authored Jan 15, 2021
    Copy the full SHA
    35da03c View commit details
21 changes: 21 additions & 0 deletions pkgs/tools/graphics/puppeteer-cli/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{ fetchFromGitHub, makeWrapper, stdenv, chromium, mkYarnPackage
}:

mkYarnPackage rec {
pname = "puppeteer-cli";
version = "1.5.1";
src = fetchFromGitHub {
owner = "JarvusInnovations";
repo = "puppeteer-cli";
rev = "v${version}";
sha256 = "0xrb8r4qc9ds7wmfd30nslnkqylxqfwr4gqf7b30v651sjyds29x";
};
packageJSON = ./package.json;
yarnLock = ./yarn.lock;
yarnNix = ./yarn.nix;
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/puppeteer \
--set PUPPETEER_EXECUTABLE_PATH ${chromium}/bin/chromium
'';
}
18 changes: 18 additions & 0 deletions pkgs/tools/graphics/puppeteer-cli/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "puppeteer-cli",
"version": "1.5.1",
"description": "A command-line wrapper for generating PDF prints and PNG screenshots with Puppeteer. Aims to be a easy replacement for the deprecated wkhtmltopdf.",
"bin": {
"puppeteer": "./index.js"
},
"author": "Chris Alfano <chris@jarv.us>",
"license": "MIT",
"repository": "JarvusInnovations/puppeteer-cli",
"dependencies": {
"file-url": "^3.0.0",
"is-url": "^1.2.4",
"puppeteer": "^2.0.0",
"url-parse": "^1.4.7",
"yargs": "^13.3.0"
}
}
Loading