mirror of
https://github.com/matter-labs/nixsgx.git
synced 2025-07-23 00:04:47 +02:00

and don't copy the rest of the build scripts Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
10 lines
461 B
Nix
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
|