diff --git a/doc/manual/command-ref/nix-generate-patches.xml b/doc/manual/command-ref/nix-generate-patches.xml
new file mode 100644
index 000000000..70bec432d
--- /dev/null
+++ b/doc/manual/command-ref/nix-generate-patches.xml
@@ -0,0 +1,44 @@
+
+
+
+ nix-generate-patches
+ 1
+ Nix
+
+
+
+
+ nix-generate-patches
+ generates binary patches between NAR files
+
+
+
+
+ nix-generate-patches
+ NAR-DIR
+ PATCH-DIR
+ PATCH-URI
+ OLD-MANIFEST
+ NEW-MANIFEST
+
+
+
+
+Description
+
+The command nix-generate-patches generates
+binary patches between NAR files listed in OLD-MANIFEST and NEW-MANIFEST.
+The patches are written to the directory PATCH-DIR, and the prefix
+PATCH-URI is used to generate URIs for the patches. The patches are
+added to NEW-MANIFEST. All NARs are required to exist in NAR-DIR.
+Patches are generated between succeeding versions of packages with
+the same name.
+
+
+
+
+
diff --git a/doc/manual/command-ref/utilities.xml b/doc/manual/command-ref/utilities.xml
index 190962cea..d5650fd38 100644
--- a/doc/manual/command-ref/utilities.xml
+++ b/doc/manual/command-ref/utilities.xml
@@ -13,6 +13,7 @@ work with Nix.
+
diff --git a/doc/manual/local.mk b/doc/manual/local.mk
index 0a5353acd..a4df921b4 100644
--- a/doc/manual/local.mk
+++ b/doc/manual/local.mk
@@ -36,7 +36,7 @@ dist-files += $(d)/manual.xmli $(d)/version.txt $(d)/manual.is-valid
man-pages := $(foreach n, \
nix-env.1 nix-build.1 nix-shell.1 nix-store.1 nix-instantiate.1 \
nix-collect-garbage.1 nix-push.1 nix-pull.1 \
- nix-prefetch-url.1 nix-channel.1 \
+ nix-prefetch-url.1 nix-channel.1 nix-generate-patches.1 \
nix-install-package.1 nix-hash.1 nix-copy-closure.1 \
nix.conf.5 nix-daemon.8, \
$(d)/$(n))