2021-01-25 08:26:54 +00:00
|
|
|
{ fetchFromGitHub, makeWrapper, chromium, mkYarnPackage
|
2020-07-03 21:38:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkYarnPackage rec {
|
|
|
|
pname = "puppeteer-cli";
|
|
|
|
version = "1.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JarvusInnovations";
|
|
|
|
repo = "puppeteer-cli";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0xrb8r4qc9ds7wmfd30nslnkqylxqfwr4gqf7b30v651sjyds29x";
|
|
|
|
};
|
2020-07-19 02:47:41 +00:00
|
|
|
packageJSON = ./package.json;
|
2020-07-03 21:38:21 +00:00
|
|
|
yarnLock = ./yarn.lock;
|
2020-07-19 02:31:58 +00:00
|
|
|
yarnNix = ./yarn.nix;
|
2020-07-03 21:38:21 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/puppeteer \
|
|
|
|
--set PUPPETEER_EXECUTABLE_PATH ${chromium}/bin/chromium
|
|
|
|
'';
|
|
|
|
}
|