Skip to content

Commit

Permalink
docs: Use nodeDependencies instead of shell.nodeDependencies
Browse files Browse the repository at this point in the history
The only difference between `shell.nodeDependencies` and
`nodeDependencies` in this example is that `shell.nodeDependencies`
skips #205 - but in the
example given I think it's most likely that people only want the
dependencies to depend on package{,-lock}.json.
  • Loading branch information
sebastianblunt committed Apr 15, 2022
1 parent d5ea8f0 commit 51ec226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ Here's an example derivation showing this technique:

```nix
let
nodeDependencies = (pkgs.callPackage ./default.nix {}).shell.nodeDependencies;
nodeDependencies = (pkgs.callPackage ./default.nix {}).nodeDependencies;
in
stdenv.mkDerivation {
Expand Down

0 comments on commit 51ec226

Please sign in to comment.