diff --git a/doc/manual/builtins.xml b/doc/manual/builtins.xml
index 3b6b80324..c8470f498 100644
--- a/doc/manual/builtins.xml
+++ b/doc/manual/builtins.xml
@@ -93,6 +93,23 @@ if builtins ? getEnv then __getEnv "PATH" else ""
+ builtins.compareVersions
+ s1s2
+
+ Compare two strings representing versions and
+ return -1 if version
+ s1 is older than version
+ s2, 0 if they are
+ the same, and 1 if
+ s1 is newer than
+ s2. The version comparison algorithm
+ is the same as the one used by nix-env
+ -u.
+
+
+
+
builtins.currentSystem
@@ -146,6 +163,16 @@ if builtins ? getEnv then __getEnv "PATH" else ""
+ builtins.div
+ e1e2
+
+ Return the quotient of the integers
+ e1 and
+ e2.
+
+
+
+
builtins.filterSourcee1e2
@@ -352,6 +379,15 @@ x: x + 456
+ builtins.length
+ e
+
+ Return the length of the list
+ e.
+
+
+
+
builtins.lessThane1e2
@@ -408,6 +444,31 @@ map (x: "foo" + x) ["bar" "bla" "abc"]
+ builtins.mul
+ e1e2
+
+ Return the product of the integers
+ e1 and
+ e2.
+
+
+
+
+ builtins.parseDrvName
+ s
+
+ Split the string s into
+ a package name and version. The package name is everything up to
+ but not including the first dash followed by a digit, and the
+ version is everything following that dash. The result is returned
+ in an attribute set {name, version}. Thus,
+ builtins.parseDrvName "nix-0.12pre12876"
+ returns {name = "nix"; version =
+ "0.12pre12876";}.
+
+
+
+
builtins.pathExistspath
diff --git a/doc/manual/nix-env.xml b/doc/manual/nix-env.xml
index 9f73b2d4c..6bf0513ac 100644
--- a/doc/manual/nix-env.xml
+++ b/doc/manual/nix-env.xml
@@ -526,7 +526,7 @@ upgrading `mozilla-1.2' to `mozilla-1.4'
-Versions
+VersionsThe upgrade operation determines whether a derivation
y is an upgrade of a derivation