3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/graphics/puppeteer-cli/default.nix
2020-07-16 19:35:33 -07:00

21 lines
553 B
Nix

{ 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 = src + "/package.json";
yarnLock = ./yarn.lock;
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/puppeteer \
--set PUPPETEER_EXECUTABLE_PATH ${chromium}/bin/chromium
'';
}