···104 # Stripping takes way too long with the amount of files required by a typical Node.js project.
105 dontStrip = args.dontStrip or true;
1060000000000107 meta = (args.meta or { }) // {
108 platforms = args.meta.platforms or nodejs.meta.platforms;
109 };
···104 # Stripping takes way too long with the amount of files required by a typical Node.js project.
105 dontStrip = args.dontStrip or true;
106107+ env = {
108+ npm_config_arch =
109+ {
110+ "x86_64" = "x64";
111+ "aarch64" = "arm64";
112+ }
113+ .${stdenv.hostPlatform.parsed.cpu.name} or stdenv.hostPlatform.parsed.cpu.name;
114+ npm_config_platform = stdenv.hostPlatform.parsed.kernel.name;
115+ } // (args.env or { });
116+117 meta = (args.meta or { }) // {
118 platforms = args.meta.platforms or nodejs.meta.platforms;
119 };