Merge pull request #39203 from typetetris/master

fetchFromGitLab: Fixes #39200
This commit is contained in:
Jörg Thalheim 2018-04-21 18:57:55 +01:00 committed by GitHub
commit f6dfa072b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -288,7 +288,7 @@ with pkgs;
... # For hash agility
}@args: fetchzip ({
inherit name;
url = "https://gitlab.com/${owner}/${repo}/repository/archive.tar.gz?ref=${rev}";
url = "https://gitlab.com/${owner}/${repo}/-/archive/${rev}/${repo}-${rev}.tar.gz";
meta.homepage = "https://gitlab.com/${owner}/${repo}/";
} // removeAttrs args [ "owner" "repo" "rev" ]) // { inherit rev; };