lol

Merge pull request #141604 from doronbehar/pkg/nodePackages/pkgsAttr

authored by

Doron Behar and committed by
GitHub
7cb82625 ef7975c6

+11 -10
+9 -4
pkgs/development/web/nodejs/nodejs.nix
··· 1 1 { lib, stdenv, fetchurl, openssl, python, zlib, libuv, util-linux, http-parser 2 2 , pkg-config, which 3 + # for `.pkgs` attribute 4 + , callPackage 3 5 # Updater dependencies 4 6 , writeScript, coreutils, gnugrep, jq, curl, common-updater-scripts, nix, runtimeShell 5 7 , gnupg ··· 40 42 (builtins.attrNames sharedLibDeps); 41 43 42 44 extraConfigFlags = optionals (!enableNpm) [ "--without-npm" ]; 43 - in 44 - 45 - stdenv.mkDerivation { 45 + self = stdenv.mkDerivation { 46 46 inherit version; 47 47 48 48 name = "${baseName}-${version}"; ··· 83 83 84 84 passthru.interpreterName = "nodejs"; 85 85 86 + passthru.pkgs = callPackage ../../node-packages/default.nix { 87 + nodejs = self; 88 + }; 89 + 86 90 setupHook = ./setup-hook.sh; 87 91 88 92 pos = builtins.unsafeGetAttrPos "version" args; ··· 147 151 }; 148 152 149 153 passthru.python = python; # to ensure nodeEnv uses the same version 150 - } 154 + }; 155 + in self
+2 -6
pkgs/top-level/all-packages.nix
··· 7085 7085 nodejs_latest = nodejs-16_x; 7086 7086 nodejs-slim_latest = nodejs-slim-16_x; 7087 7087 7088 - nodePackages_latest = dontRecurseIntoAttrs (callPackage ../development/node-packages/default.nix { 7089 - nodejs = nodejs_latest; 7090 - }); 7088 + nodePackages_latest = dontRecurseIntoAttrs nodejs_latest.pkgs; 7091 7089 7092 - nodePackages = dontRecurseIntoAttrs (callPackage ../development/node-packages/default.nix { 7093 - inherit nodejs; 7094 - }); 7090 + nodePackages = dontRecurseIntoAttrs nodejs.pkgs; 7095 7091 7096 7092 np2kai = callPackage ../misc/emulators/np2kai { }; 7097 7093