fetchFromBitbucket: url escape rev attr

To make sure revision with spaces in them (most likely from repos that
were used with mercurial) as well as revisions with names containing url
encoded characters ("branch%20with%20encoded%spaces").
This commit is contained in:
Anton Tetov
2025-05-24 14:45:42 +02:00
parent 1ea957198f
commit 81e7978020
@@ -11,8 +11,7 @@ lib.makeOverridable (
fetchzip (
{
inherit name;
url = "https://bitbucket.org/${owner}/${repo}/get/${rev}.tar.gz";
# url = "https://bitbucket.org/${owner}/${repo}/get/${lib.strings.escapeURL rev}.tar.gz";
url = "https://bitbucket.org/${owner}/${repo}/get/${lib.strings.escapeURL rev}.tar.gz";
meta.homepage = "https://bitbucket.org/${owner}/${repo}/";
}
// removeAttrs args [