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