Default attr.type to null
This commit is contained in:
parent
2dabb25707
commit
d307bacb48
1 changed files with 2 additions and 1 deletions
|
|
@ -21,12 +21,13 @@ let
|
|||
let
|
||||
revision = lockedRevisions.${name};
|
||||
submodules = attr.submodules or false;
|
||||
type = attr.type or null;
|
||||
in if lib.hasPrefix "https://github.com" attr.url && !submodules then
|
||||
fetchzip {
|
||||
url = "${attr.url}/archive/${revision.rev}.zip";
|
||||
inherit (revision) sha256;
|
||||
}
|
||||
else if (lib.hasPrefix "https://gitlab.com" attr.url || attr.type == "gitlab") && !submodules then
|
||||
else if (lib.hasPrefix "https://gitlab.com" attr.url || type == "gitlab") && !submodules then
|
||||
let
|
||||
gitlab = parseGitlabUrl attr.url;
|
||||
in fetchzip {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue