npmHooks.npmConfigHook: add npmRoot option#230991
npmHooks.npmConfigHook: add npmRoot option#230991lilyinstarlight merged 2 commits intoNixOS:masterfrom
Conversation
|
Feel free to pick #229953. |
|
After setting on the navidrome derivation I am greeted by |
|
Just needs documentation, but implementation should be good. Some notes:
|
There was a problem hiding this comment.
Do the other hooks need pushd/popd too?
- Do we want
src = "${src}/foo"orsourceRootto be the only way to integratefetchNpmDepsinto this (which either only supports directory sources, or has bad UX.), or should we add support for something else?
I think we should allow fetchNpmDeps to accept an npmRoot as well so that people can just inherit npmRoot; in their fetcher. I suppose it doesn't need pushd/popd for that and can just specify an absolute path to the package-lock.json
It's not the same version. Pre #230092, there's a |
I don't think so, all this is meant to do is allow the installation of dependencies (which is arguably the most annoying part without the hook), just like the Rust hooks.
Got it, I was looking for something like that, but guess I missed it. Thanks. |
ae099fa to
a8c39f7
Compare
Yeah, but some people may find benefit in using it with I'm not gonna let it block this PR, though, since this PR blocks other updates. We'll investigate adding |
Description of changes
Only, what, 48 hours late?
Told you it was simple! Would appreciate if someone would test, then I'll document and we can land. Thanks!
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)