Merge pull request #329662 from bryango/nodejs-finalpackage

nodejs: use .finalPackage for ease of overriding
This commit is contained in:
Doron Behar 2024-07-25 16:07:22 +03:00 committed by GitHub
commit 2c36071c2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,7 +44,13 @@ let
(builtins.attrNames sharedLibDeps);
extraConfigFlags = lib.optionals (!enableNpm) [ "--without-npm" ];
self = stdenv.mkDerivation {
package = stdenv.mkDerivation (finalAttrs:
let
/** the final package fixed point, after potential overrides */
self = finalAttrs.finalPackage;
in
{
inherit pname version;
src = fetchurl {
@ -235,5 +241,5 @@ let
};
passthru.python = python; # to ensure nodeEnv uses the same version
};
in self
});
in package