Where's the source code of buildNpmPackage?


I’m still relatively new to nix, and I used buildNpmPackage to build a npm project I have. Now however I need to customize it a bit more, but buildNpmPackage is pretty much a blackbox for me, so I wanted to look at the source of it. But I cannot find it, I can find lots of uses of buildNpmPackage, but not where it’s defined.

I’m sure it’s just that I’m not familiar enough yet with the structure of nixpkgs, but could someone point me to the source for it?

Thank you!

It’s here: https://github.com/NixOS/nixpkgs/blob/7b5e394e7573b5b364e332a38653ee015b498817/pkgs/build-support/node/build-npm-package/default.nix

1 Like