diff options
| author | adisbladis <adisbladis@gmail.com> | 2024-08-08 14:26:26 +1200 |
|---|---|---|
| committer | Philip Taron <philip.taron@gmail.com> | 2024-08-29 06:12:07 -0700 |
| commit | 9c7ff7277cdc8839199849ca759ceba306f98b44 (patch) | |
| tree | 4ac9a324db6511ffc9baad7c80392b92b7b46a78 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | 24a9af7a38491c36dc3568e0fe123919e9e69c21 (diff) | |
importNpmLock.buildNodeModules: init
`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
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
