1 { fetchgit, fetchzip, lib }:
7 , domain ? "git.9front.org"
11 , ... # For hash agility
15 passthruAttrs = removeAttrs args [ "domain" "owner" "repo" "rev" "leaveDotGit" "deepClone" ];
17 useFetchGit = leaveDotGit || deepClone;
18 fetcher = if useFetchGit then fetchgit else fetchzip;
20 gitRepoUrl = "git://${domain}/${owner}/${repo}";
22 fetcherArgs = (if useFetchGit then {
23 # git9 does not support shallow fetches
24 inherit rev leaveDotGit;
27 url = "https://${domain}/${owner}/${repo}/${rev}/snap.tar.gz";
32 }) // passthruAttrs // { inherit name; };
35 fetcher fetcherArgs // { inherit rev; }