mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
fetchFromSavannah: support repos like emacs/elpa
This commit is contained in:
parent
9846ac5ed2
commit
4f0189e1a8
1 changed files with 5 additions and 1 deletions
|
@ -11,7 +11,11 @@ lib.makeOverridable (
|
||||||
fetchzip (
|
fetchzip (
|
||||||
{
|
{
|
||||||
inherit name;
|
inherit name;
|
||||||
url = "https://git.savannah.gnu.org/cgit/${repo}.git/snapshot/${repo}-${rev}.tar.gz";
|
url =
|
||||||
|
let
|
||||||
|
repo' = lib.last (lib.strings.splitString "/" repo); # support repo like emacs/elpa
|
||||||
|
in
|
||||||
|
"https://git.savannah.gnu.org/cgit/${repo}.git/snapshot/${repo'}-${rev}.tar.gz";
|
||||||
meta.homepage = "https://git.savannah.gnu.org/cgit/${repo}.git/";
|
meta.homepage = "https://git.savannah.gnu.org/cgit/${repo}.git/";
|
||||||
passthru.gitRepoUrl = "https://git.savannah.gnu.org/git/${repo}.git";
|
passthru.gitRepoUrl = "https://git.savannah.gnu.org/git/${repo}.git";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue