From 6229beed42d50191f40fa3a7d11111a436217fd8 Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Wed, 27 May 2026 00:09:31 -0700 Subject: [PATCH] doc: add meta.donationPage This might be a nice way to use our reach to remind users to donate to FLOSS projects that they use and love. Signed-off-by: Ethan Carter Edwards (cherry picked from commit 9d2f2d71e434cad5c40a3539cce2e8b9340c51ca) --- doc/redirects.json | 3 +++ doc/stdenv/meta.chapter.md | 6 ++++++ pkgs/stdenv/generic/check-meta.nix | 1 + 3 files changed, 10 insertions(+) diff --git a/doc/redirects.json b/doc/redirects.json index d06728e02abd..aa3fab88f28a 100644 --- a/doc/redirects.json +++ b/doc/redirects.json @@ -899,6 +899,9 @@ "var-go-buildTestBinaries": [ "index.html#var-go-buildTestBinaries" ], + "var-meta-donationPage": [ + "index.html#var-meta-donationPage" + ], "var-meta-identifiers-cpe": [ "index.html#var-meta-identifiers-cpe" ], diff --git a/doc/stdenv/meta.chapter.md b/doc/stdenv/meta.chapter.md index 1fac5244af66..eb0d4f3c2cc2 100644 --- a/doc/stdenv/meta.chapter.md +++ b/doc/stdenv/meta.chapter.md @@ -61,6 +61,12 @@ Release branch. Used to specify that a package is not going to receive updates t The package’s homepage. Example: `https://www.gnu.org/software/hello/manual/` +### `donationPage` {#var-meta-donationPage} + +The package or project's donation page, if it exists. Example: `https://neovim.io/sponsors/` + +Authoritative project URLs are preferred. + ### `downloadPage` {#var-meta-downloadPage} The page where a link to the current version can be found. Example: `https://ftp.gnu.org/gnu/hello/` diff --git a/pkgs/stdenv/generic/check-meta.nix b/pkgs/stdenv/generic/check-meta.nix index 91e40c365127..17be55522861 100644 --- a/pkgs/stdenv/generic/check-meta.nix +++ b/pkgs/stdenv/generic/check-meta.nix @@ -329,6 +329,7 @@ let (listOf str) str ]; + donationPage = str; downloadPage = str; changelog = union [ (listOf str)