Error: Package ‘python-’ insecure when installing nodejs

NixOS Newbie here. Apologies if I’m missing something obvious.

I’m trying to install nodejs based on the shell.nix example [0]. But it gets rejected because of ‘python-’ being insecure. Looking at the nodejs package definition [1] I see the python dependency but I don’t understand how it resolves to the outdated 2.7 version.

Why does it default to an outdated version?
What is the canonical way to fix this, besides allowing insecure packages?

Thanks so much

[0] Node.js - NixOS Wiki

buildNodeJs = pkgs.callPackage <nixpkgs/pkgs/development/web/nodejs/nodejs.nix> {}; does not pass the python like the in tree uses

I updated the example in the wiki

1 Like