From d307bacb4834943629c362ae207451ceb88efc48 Mon Sep 17 00:00:00 2001 From: tilpner Date: Thu, 19 Jul 2018 11:47:12 +0200 Subject: [PATCH] Default attr.type to null --- default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 65526ab38..38de78047 100644 --- a/default.nix +++ b/default.nix @@ -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 {