nixsgx/packages/nodejs/default.nix
Harald Hoyer 7afe2bbed7
fix: build nodejs with overwrite*
and don't copy the rest of the build scripts

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
2024-03-22 13:39:15 +01:00

10 lines
461 B
Nix

args@{ callPackage, lib, overrideCC, pkgs, buildPackages, fetchpatch, openssl, python3, nixsgx, nodejs_18, enableNpm ? false }:
let
callPackage' = p: a: callPackage p (a // { inherit (nixsgx) libuv; });
nodejs_libuv = nodejs_18.override { callPackage = callPackage'; };
nodejs_patched = nodejs_libuv.overrideAttrs (prevAttrs: {
inherit enableNpm;
configureFlags = prevAttrs.configureFlags ++ [ "--without-node-snapshot" ];
});
in
nodejs_patched