yarn2nix-moretea: re-add support for `git://` URLs from `yarn.lock`

@lheckemann already added it to `yarn2nix` a while ago[1], but it seems
as it was forgotten to include when adding `yarn2nix` sources to
`nixpkgs` itself.

Without this patch, you cannot add dependencies to your `package.json`
with URLs like `git://github.com/.../` as building the expression would
fail like this:

```
curl: (1) Protocol "git" not supported or disabled in libcurl
error: cannot download git___github.com_sstur_nodeftpd.git from any mirror
```

Co-authored-by: Linus Heckemann <git@sphalerite.org>

[1] https://github.com/nix-community/yarn2nix/pull/141
This commit is contained in:
Maximilian Bosch 2020-10-09 09:55:35 +02:00
parent cd0065d184
commit 0c49f1896e
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ function fetchLockedDep(builtinFetchGit) {
const fileName = urlToName(url)
if (url.startsWith('git+')) {
if (url.startsWith('git+') || url.startsWith("git:")) {
const rev = sha1OrRev
const [_, branch] = nameWithVersion.split('#')