query
On this page

fetchFromSavannah

pkgs.fetchFromSavannah

Functor
Docs pulled from | This Revision | 38 minutes ago

No reference documentation found yet.

Contribute now!


Contribute
Enhance the ecosystem with your expertise! Contribute to fill the gaps in documentation. Your input can make a difference.

Noogle detected

This is a Functor

Learn about functors

Implementation

The following is the current implementation of this function.

{
    repo,
    rev,
    name ? repoRevToNameMaybe repo rev "savannah",
    ... # For hash agility
  }@args:
  let
    result =
      fetchzip (
        {
          inherit name;
          url =
            let
              repo' = lib.last (lib.strings.splitString "/" repo); # support repo like emacs/elpa
            in
            "https://cgit.git.savannah.gnu.org/cgit/${repo}.git/snapshot/${repo'}-${rev}.tar.gz";
          meta.homepage = "https://cgit.git.savannah.gnu.org/cgit/${repo}.git/";
          passthru.gitRepoUrl = "https://cgit.git.savannah.gnu.org/git/${repo}.git";
        }
        // removeAttrs args [
          "repo"
          "rev"
        ]
      )
      // {
        inherit rev;
      };
  in
  lib.warnOnInstantiate "`fetchFromSavannah` is deprecated and will be removed in a future release." result