From cf3f6beff7f7705fe1b1454ffedf0fccf4fb7aa1 Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Tue, 29 Oct 2024 18:07:10 +0800 Subject: [PATCH] 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 --- pkgs/build-support/fetchsavannah/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/build-support/fetchsavannah/default.nix b/pkgs/build-support/fetchsavannah/default.nix index e75e25fc1e70..0849323d582c 100644 --- a/pkgs/build-support/fetchsavannah/default.nix +++ b/pkgs/build-support/fetchsavannah/default.nix @@ -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; } )