pageres-cli: init
This commit is contained in:
parent
c29c54b277
commit
51a408e3d6
28
5pkgs/pageres-cli/default.nix
Normal file
28
5pkgs/pageres-cli/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ pkgs, ... }:
|
||||
pkgs.buildNpmPackage rec {
|
||||
pname = "pageres-cli";
|
||||
version = "8.0.0";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "sindresorhus";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-/gxa+veo+ycTmXWayMoyzlB777MPA0xYszNgreFu3Sk";
|
||||
};
|
||||
buildInputs = [ pkgs.chromium pkgs.makeWrapper ];
|
||||
postPatch = ''
|
||||
cp ${./package-lock.json} package-lock.json
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/pageres \
|
||||
--set PUPPETEER_EXECUTABLE_PATH ${pkgs.chromium}/bin/chromium \
|
||||
--set PUPPETEER_SKIP_DOWNLOAD true
|
||||
'';
|
||||
|
||||
PUPPETEER_SKIP_DOWNLOAD = true;
|
||||
dontNpmBuild = true;
|
||||
dontNpmPrune = true;
|
||||
|
||||
npmDepsHash = "sha256-ev6TGqlddzdkV5bpUDA1T1vv2/A00IfXA3Q/HHFJW7A";
|
||||
}
|
9732
5pkgs/pageres-cli/package-lock.json
generated
Normal file
9732
5pkgs/pageres-cli/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue