From 1bf8b9e5d5fa5ab61e6f784dd8585a1fd1a0ab7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 11 May 2025 11:59:26 +0200 Subject: [PATCH] docs: replace fetchpatch with fetchpatch2 --- pkgs/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/README.md b/pkgs/README.md index e6a05c19f834..36e8b3e185a6 100644 --- a/pkgs/README.md +++ b/pkgs/README.md @@ -501,12 +501,12 @@ When using the `patches` parameter to `mkDerivation`, make sure the patch name c ### Fetching patches -In the interest of keeping our maintenance burden and the size of Nixpkgs to a minimum, patches already merged upstream or published elsewhere _should_ be retrieved using `fetchpatch`: +In the interest of keeping our maintenance burden and the size of Nixpkgs to a minimum, patches already merged upstream or published elsewhere _should_ be retrieved using `fetchpatch2`: ```nix { patches = [ - (fetchpatch { + (fetchpatch2 { name = "fix-check-for-using-shared-freetype-lib.patch"; url = "http://git.ghostscript.com/?p=ghostpdl.git;a=patch;h=8f5d285"; hash = "sha256-uRcxaCjd+WAuGrXOmGfFeu79cUILwkRdBu48mwcBE7g="; @@ -515,7 +515,7 @@ In the interest of keeping our maintenance burden and the size of Nixpkgs to a m } ``` -If a patch is available online but does not cleanly apply, it can be modified in some fixed ways by using additional optional arguments for `fetchpatch`. Check [the `fetchpatch` reference](https://nixos.org/manual/nixpkgs/unstable/#fetchpatch) for details. +If a patch is available online but does not cleanly apply, it can be modified in some fixed ways by using additional optional arguments for `fetchpatch2`. Check [the `fetchpatch` reference](https://nixos.org/manual/nixpkgs/unstable/#fetchpatch) for details. ### Vendoring patches