{ callPackage, openssl, python3, enableNpm ? true }:

let
  buildNodejs = callPackage ./nodejs.nix {
    inherit openssl;
    python = python3;
  };
in
  buildNodejs {
    inherit enableNpm;
    version = "16.15.1";
    sha256 = "sha256-1OmdPB9pcREJpnUlVxBY5gCc3bwijn1yO4+0pFQWm30=";
    patches = [
      ./disable-darwin-v8-system-instrumentation.patch
    ];
  }

{ callPackage, openssl, python3, enableNpm ? true }:

let
  buildNodejs = callPackage ./nodejs.nix {
    inherit openssl;
    python = python3;
  };
in
  buildNodejs {
    inherit enableNpm;
    version = "16.15.0"; # Do not upgrade until #176127 is solved
    sha256 = "sha256-oPgS78Q/eDIeygiVeWCkj15r+XAE1QWMjdOwPGRupPc=";
    patches = [
      ./disable-darwin-v8-system-instrumentation.patch
    ];
  }

Revert "nodejs-16_x: 16.15.0 -> 16.15.1"
Revert "nodejs-16_x: 16.15.0 -> 16.15.1"

Node.js 16.15.1 updated its vendored npm, which breaks sandboxed builds

See: https://github.com/NixOS/nixpkgs/issues/176127

This reverts commit e6188b65767b0cbce493dc9724e55ca005284331.
