pageres-cli: init

This commit is contained in:
makefu 2024-05-06 01:26:58 +02:00
parent c29c54b277
commit 51a408e3d6
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225
2 changed files with 9760 additions and 0 deletions

View 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

File diff suppressed because it is too large Load diff