diff options
Diffstat (limited to 'pkgs/tools/networking/pgrok/web.nix')
-rw-r--r-- | pkgs/tools/networking/pgrok/web.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/networking/pgrok/web.nix b/pkgs/tools/networking/pgrok/web.nix new file mode 100644 index 0000000000000..f9b1485c20ae8 --- /dev/null +++ b/pkgs/tools/networking/pgrok/web.nix @@ -0,0 +1,29 @@ +{ buildNpmPackage +, src +, version +}: +buildNpmPackage { + name = "pgrok-web"; + inherit src version; + sourceRoot = "${src.name}/pgrokd/web"; + + npmDepsHash = "sha256-f4pDBoG6sTJE3aUknqUvHHpBR9KWo/B4YMrWHkGbvA8="; + + # Upstream doesn't have a lockfile + postPatch = '' + cp ${./package-lock.json} ./package-lock.json + substituteInPlace ./package.json \ + --replace "../cli/dist" "$out" + ''; + + patches = [ + ./add_version_to_package.json.patch + ]; + + dontInstall = true; + dontFixup = true; + + NODE_OPTIONS = "--openssl-legacy-provider"; + + npmPackFlags = [ "--ignore-scripts" ]; + } |