diff --git a/nix/npm-package.nix b/nix/npm-package.nix index 6b1b17f..4c0de85 100644 --- a/nix/npm-package.nix +++ b/nix/npm-package.nix @@ -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 {