1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00

nodePackages: support github:owner/repo scheme for package deps

JS devs found a new way to be annoying - adjust code accordingly.

Have also put this change in PR svanderburg/node2nix#40
This commit is contained in:
Rodney Lorrimar 2017-03-05 19:25:39 +00:00 committed by Jörg Thalheim
parent 196f64d675
commit 453529bd60
No known key found for this signature in database
GPG key ID: CA4106B8D7CC79FA

View file

@ -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