lib.throwIfNot(protocol=="https")"private token login is only supported for https"{
netrcPhase=''
if [ -z "''$${varBase}USERNAME" -o -z "''$${varBase}PASSWORD" ]; then
echo "Error: Private fetchFromGitLab requires the nix building process (nix-daemon in multi user mode) to have the ${varBase}USERNAME and ${varBase}PASSWORD env vars set." >&2
exit 1
fi
''
+(
ifuseFetchGitthen
# GitLab supports HTTP Basic Authentication only when Git is used: