2021-08-05 21:33:18 +00:00
|
|
|
{ callPackage, openssl, python3, fetchpatch, enableNpm ? true }:
|
2021-04-22 02:08:21 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
buildNodejs = callPackage ./nodejs.nix {
|
|
|
|
inherit openssl;
|
|
|
|
python = python3;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
buildNodejs {
|
|
|
|
inherit enableNpm;
|
2021-07-14 22:03:04 +00:00
|
|
|
version = "16.5.0";
|
|
|
|
sha256 = "16dapj5pm2y1m3ldrjjlz8rq9axk85nn316iz02nk6qjs66y6drz";
|
2021-08-05 21:33:18 +00:00
|
|
|
patches = [
|
|
|
|
# Fix CVE-2021-22930 https://github.com/nodejs/node/pull/39423.
|
|
|
|
# It should be fixed by Node.js 16.6.0, but currently it fails to build on Darwin
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/nodejs/node/commit/9d950a0956bf2c3dd87bacb56807f37e16a91db4.patch";
|
|
|
|
sha256 = "1narhk5dqdkbndh9hg0dn5ghhgrd6gsamjqszpivmp33nl5hgsx3";
|
|
|
|
})
|
|
|
|
];
|
2021-04-22 02:08:21 +00:00
|
|
|
}
|