Skip to content

Commit

Permalink
nodePackages: support github:owner/repo scheme for package deps
Browse files Browse the repository at this point in the history
JS devs found a new way to be annoying - adjust code accordingly.

Have also put this change in PR svanderburg/node2nix#40
  • Loading branch information
rvl authored and Mic92 committed Mar 12, 2017
1 parent 196f64d commit 453529b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/node-packages/node-env.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ let
if(versionSpec == "latest" || versionSpec == "unstable" ||
versionSpec.substr(0, 2) == ".." || dependency.substr(0, 2) == "./" || dependency.substr(0, 2) == "~/" || dependency.substr(0, 1) == '/')
return '*';
else if(parsedUrl.protocol == "git:" || parsedUrl.protocol == "git+ssh:" || parsedUrl.protocol == "git+http:" || parsedUrl.protocol == "git+https:" ||
else if(parsedUrl.protocol == "git:" || parsedUrl.protocol == "git+ssh:" || parsedUrl.protocol == "git+http:" || parsedUrl.protocol == "git+https:" || parsedUrl.protocol == "github:" ||
parsedUrl.protocol == "http:" || parsedUrl.protocol == "https:")
return '*';
else
Expand Down

0 comments on commit 453529b

Please sign in to comment.