File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 3131 dependencies ? [ ]
3232
3333, nodejs ? pkgs . nodejs-18_x
34+ , # `devShellHook` is the shell commands to run _before_ entering the shell
35+ # (see the variable `shell`)
36+ devShellHook ? ""
37+ , # `devShellTools` are extra derivations to append to the `buildInputs` for
38+ # the shell (see the variable `shell`)
39+ devShellTools ? [ ]
3440, ...
3541} :
3642let
143149 # Note: `node2nix` sets `$NODE_PATH` s.t. it is a single path.
144150 echo 'Creating a symbolic link from `$NODE_PATH` to `node_modules`...'
145151 ln -snf "$NODE_PATH" node_modules
152+
153+ # Run the provided `devShellHook`
154+ ${ devShellHook }
146155 '' ;
156+ buildInputs = node2nixDevelopAttrs . shell . buildInputs ++ devShellTools ;
147157 } ;
148158
149159 # Creates a tarball of `project` using `npm pack` and puts it in the nix
You can’t perform that action at this time.
0 commit comments