BH6ZB7RYTWHHBSKYFUZNP7SJCRW3UIZHAKHSVCBPISTP3T35HCBAC ,"rust-overlay":{"kd":[2,{"ft":0,"rp":"https://github.com/oxalica/rust-overlay","ms":[],"rf":[1,"master"],"dt":"2026-04-05T03:12:47Z","sm":false,"lf":false,"lr":"20fd44bc663daa53a2575e01293e24e681d62244"}],"ha":{"al":0,"vl":"sha256-f2eC+WIfhjevCPQILuV08i/kmKZzYZpUvkom/33VxCA="},"fv":null,"ps":[]}
builtin-fetch-git = {name, kind}:letref =lettype = builtins.elemAt kind.rf 0;valu = builtins.elemAt kind.rf 1;inif type == 0 then # refvaluelse if type == 1 then # branch"refs/heads/${valu}"else if type == 2 then # tag"refs/tags/${valu}"elsethrow "Unsupported reference type “${builtins.toString type}”.";intry-fetch name (url:builtins.fetchGit {inherit url ref;rev = kind.lr;submodules = kind.sm;lfs = kind.lf;shallow = true;}) kind.rp kind.ms;
fetch-git = {name, kind, hash}:letusing-mirrors = kind ? ms && (builtins.length kind.ms) > 0;mirror-support = pkgs.fetchgit.__functionArgs ? "mirrors";inlib.warnIf (using-mirrors && !mirror-support)"Upstream pkgs.fetchgit doesn’t yet support mirrors for 「${name}」"pkgs.fetchgit {url = kind.rp;rev = kind.lr;fetchSubmodules = kind.sm;fetchLFS = kind.lf;deepClone = false;hash = hash.vl;} // lib.optionalAttrs (using-mirrors && mirror-support) {mirrors = kind.ms;};