Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 21 lines 650 B view raw
1# tested so far with: 2# - no revision specified and remote has a HEAD which is used 3# - revision specified and remote has a HEAD 4# - revision specified and remote without HEAD 5# 6 7echo "exporting $url (rev $rev) into $out" 8 9runHook preFetch 10 11$SHELL $fetcher --builder --url "$url" --out "$out" --rev "$rev" --name "$name" \ 12 ${leaveDotGit:+--leave-dotGit} \ 13 ${fetchLFS:+--fetch-lfs} \ 14 ${deepClone:+--deepClone} \ 15 ${fetchSubmodules:+--fetch-submodules} \ 16 ${fetchTags:+--fetch-tags} \ 17 ${sparseCheckout:+--sparse-checkout "$sparseCheckout"} \ 18 ${nonConeMode:+--non-cone-mode} \ 19 ${branchName:+--branch-name "$branchName"} 20 21runHook postFetch