mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
9c7ff7277c
`importNpmLock.buildNodeModules` returns a derivation with a pre-built `node_modules` directory, as imported by `importNpmLock`. This is to be used together with `importNpmLock.hooks.linkNodeModulesHook` to facilitate `nix-shell`/`nix develop` based development workflows: ```nix pkgs.mkShell { packages = [ importNpmLock.hooks.linkNodeModulesHook nodejs ]; npmDeps = importNpmLock.buildNodeModules { npmRoot = ./.; inherit nodejs; }; } ``` will create a development shell where a `node_modules` directory is created & packages symlinked to the Nix store when activated. This code is adapted from https://github.com/adisbladis/buildNodeModules |
||
---|---|---|
.. | ||
agda.section.md | ||
android.section.md | ||
beam.section.md | ||
bower.section.md | ||
chicken.section.md | ||
coq.section.md | ||
crystal.section.md | ||
cuda.section.md | ||
cuelang.section.md | ||
dart.section.md | ||
dhall.section.md | ||
dlang.section.md | ||
dotnet.section.md | ||
emscripten.section.md | ||
gnome.section.md | ||
go.section.md | ||
gradle.section.md | ||
hare.section.md | ||
haskell.section.md | ||
hy.section.md | ||
idris2.section.md | ||
idris.section.md | ||
index.md | ||
ios.section.md | ||
java.section.md | ||
javascript.section.md | ||
julia.section.md | ||
lisp.section.md | ||
lua.section.md | ||
maven.section.md | ||
nim.section.md | ||
ocaml.section.md | ||
octave.section.md | ||
perl.section.md | ||
php.section.md | ||
pkg-config.section.md | ||
python.section.md | ||
qt.section.md | ||
r.section.md | ||
ruby.section.md | ||
rust.section.md | ||
scheme.section.md | ||
swift.section.md | ||
texlive.section.md | ||
titanium.section.md | ||
vim.section.md |