Unverified Commit 03b2128f authored by Jasi's avatar Jasi Committed by Jasi
Browse files

fetchFromSavannah: deprecate

The Savannah administrators do not want package maintainers to use
cgit snapshots due to putting strain on the servers and have disabled
cgit snapshots for most if not all of their repositories.

See: https://lists.gnu.org/archive/html/savannah-hackers/2025-12/msg00014.html



Co-authored-by: default avatarPhilip Taron <philip.taron@gmail.com>
Co-authored-by: default avatarLIN, Jian <me@linj.tech>
parent 49961d37
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -899,10 +899,6 @@ However, `fetchFromBitbucket` will automatically switch to using `fetchgit` and

When `fetchgit` is used, refer to the `fetchgit` section for documentation of its available options.

## `fetchFromSavannah` {#fetchfromsavannah}

This is used with Savannah repositories. The arguments expected are very similar to `fetchFromGitHub` above.

## `fetchFromRepoOrCz` {#fetchfromrepoorcz}

This is used with repo.or.cz repositories. The arguments expected are very similar to `fetchFromGitHub` above.
+2 −4
Original line number Diff line number Diff line
@@ -314,7 +314,8 @@
    "release-notes.html#sec-nixpkgs-release-26.05-lib-breaking"
  ],
  "sec-nixpkgs-release-26.05-lib-deprecations": [
    "release-notes.html#sec-nixpkgs-release-26.05-lib-deprecations"
    "release-notes.html#sec-nixpkgs-release-26.05-lib-deprecations",
    "index.html#fetchfromsavannah"
  ],
  "sec-nixpkgs-release-26.05-lib-additions-improvements": [
    "release-notes.html#sec-nixpkgs-release-26.05-lib-additions-improvements"
@@ -1779,9 +1780,6 @@
  "fetchfrombitbucket": [
    "index.html#fetchfrombitbucket"
  ],
  "fetchfromsavannah": [
    "index.html#fetchfromsavannah"
  ],
  "fetchfromrepoorcz": [
    "index.html#fetchfromrepoorcz"
  ],
+1 −0
Original line number Diff line number Diff line
@@ -162,6 +162,7 @@

- `mpv-unwrapped.scripts` and `mpv-unwrapped.wrapper` have been removed. Please use `mpvScripts` and `mpv.override` accordingly.

- `fetchFromSavannah` is now deprecated and is expected to be fully removed in a future release. From now on, use `fetchgit` or a Savannah releases mirror when applicable.

### Additions and Improvements {#sec-nixpkgs-release-26.05-lib-additions-improvements}

+23 −19
Original line number Diff line number Diff line
@@ -12,6 +12,8 @@ lib.makeOverridable (
    name ? repoRevToNameMaybe repo rev "savannah",
    ... # For hash agility
  }@args:
  let
    result =
      fetchzip (
        {
          inherit name;
@@ -30,5 +32,7 @@ lib.makeOverridable (
      )
      // {
        inherit rev;
  }
      };
  in
  lib.warnOnInstantiate "`fetchFromSavannah` is deprecated and will be removed in a future release." result
)