From e76c689a3da8ee876c4bbe7c6549da92e4bcf279 Mon Sep 17 00:00:00 2001 From: alyaeanyx Date: Sun, 18 May 2025 18:38:47 +0200 Subject: [PATCH] nodejs: fix dev output --- pkgs/development/web/nodejs/nodejs.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/web/nodejs/nodejs.nix b/pkgs/development/web/nodejs/nodejs.nix index b40bfb43950a..873a333e5f38 100644 --- a/pkgs/development/web/nodejs/nodejs.nix +++ b/pkgs/development/web/nodejs/nodejs.nix @@ -479,7 +479,7 @@ let ''} # install the missing headers for node-gyp - # TODO: add dev output and use propagatedBuildInputs instead of copying headers. + # TODO: use propagatedBuildInputs instead of copying headers. cp -r ${lib.concatStringsSep " " copyLibHeaders} $out/include/node # assemble a static v8 library and put it in the 'libv8' output @@ -510,6 +510,9 @@ let Libs: -L$libv8/lib -lv8 -pthread -licui18n -licuuc Cflags: -I$libv8/include EOF + '' + + lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) '' + cp -r $out/include $dev/include ''; passthru.tests = {