fetchFromSavannah: add passthru.gitRepoUrl

This can be used by update scripts such as unstableGitUpdater[1].

[1]: https://github.com/NixOS/nixpkgs/blob/1dcca7a82a44651ad3ab19b83b4e2bc7c4f661f6/pkgs/common-updater/unstable-updater.nix#L15
This commit is contained in:
Lin Jian
2024-10-29 18:11:52 +08:00
parent 1dcca7a82a
commit cf3f6beff7
@@ -8,5 +8,6 @@ lib.makeOverridable (
inherit name;
url = "https://git.savannah.gnu.org/cgit/${repo}.git/snapshot/${repo}-${rev}.tar.gz";
meta.homepage = "https://git.savannah.gnu.org/cgit/${repo}.git/";
passthru.gitRepoUrl = "https://git.savannah.gnu.org/git/${repo}.git";
} // removeAttrs args [ "repo" "rev" ]) // { inherit rev; }
)