Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Mar 12, 2024
1 parent 7cef84a commit 1c569cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nix/npm-package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ let
# workspacePath = /home/username/project/workspace
# And produce
# npmWorkspace = ./workspace
rootPathSplit = pkgs.strings.splitString "/" rootPath;
workspacePathSplit = pkgs.strings.splitString "/" workspacePath;
rootPathSplit = pkgs.lib.strings.splitString "/" rootPath;
workspacePathSplit = pkgs.lib.strings.splitString "/" workspacePath;
npmWorkspace = pkgs.lib.lists.sublist ((builtins.length workspacePathSplit) - (builtins.length rootPathSplit)) (builtins.length workspacePathSplit) workspacePathSplit;

builtNodeModules = pkgs.buildNpmPackage {
Expand Down

0 comments on commit 1c569cb

Please sign in to comment.