An experiment in improving node packaging for nix. Dead simple. - GitHub - adisbladis/buildNodeModules: An experiment in improving node packaging for nix. Dead simple.
Nice! I was looking for something like this a couple of days ago, and I landed on serokell/nix-npm-buildpackage. But I can see that the adisbladis one has a couple of advantages: it puts each dependency in its own store path so you get more cache hits, and it supports dependencies that want to write to node_modules.
There is also a buildNpmPackage in nixpkgs but it wants a dependencies hash up-front which is not what I’m looking for.
Nice! I was looking for something like this a couple of days ago, and I landed on serokell/nix-npm-buildpackage. But I can see that the adisbladis one has a couple of advantages: it puts each dependency in its own store path so you get more cache hits, and it supports dependencies that want to write to
node_modules
.There is also a
buildNpmPackage
in nixpkgs but it wants a dependencies hash up-front which is not what I’m looking for.