fetchFromGitLab: replace ‘.’ with ‘%2E’

For some reason gitlab does not recognize the . correctly.

Fixes #53280

+1 -1
+1 -1
pkgs/top-level/all-packages.nix
··· 320 320 ... # For hash agility 321 321 }@args: fetchzip ({ 322 322 inherit name; 323 - url = "https://${domain}/api/v4/projects/${lib.optionalString (group != null) "${group}%2F"}${owner}%2F${repo}/repository/archive.tar.gz?sha=${rev}"; 323 + url = "https://${domain}/api/v4/projects/${lib.optionalString (group != null) "${lib.replaceStrings ["."] ["%2E"] group}%2F"}${lib.replaceStrings ["."] ["%2E"] owner}%2F${lib.replaceStrings ["."] ["%2E"] repo}/repository/archive.tar.gz?sha=${rev}"; 324 324 meta.homepage = "https://${domain}/${lib.optionalString (group != null) "${group}/"}${owner}/${repo}/"; 325 325 } // removeAttrs args [ "domain" "owner" "group" "repo" "rev" ]) // { inherit rev; }; 326 326