about summary refs log tree commit diff
path: root/doc/manual
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2018-02-13T23·28-0500
committerShea Levy <shea@shealevy.com>2018-02-14T14·55-0500
commitb095c06139fa267e6050e4c95208c627cc6251b8 (patch)
tree3fb353d3eaa7334a127d5fe30cd6499abe002d16 /doc/manual
parent3fe9767dd33499c2560d209dc13a01f5fcead1f0 (diff)
Add splitVersion primop.
Fixes #1868.
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/expressions/builtins.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/manual/expressions/builtins.xml b/doc/manual/expressions/builtins.xml
index 81770bcf6292..8a32ed8b5c99 100644
--- a/doc/manual/expressions/builtins.xml
+++ b/doc/manual/expressions/builtins.xml
@@ -126,6 +126,17 @@ if builtins ? getEnv then builtins.getEnv "PATH" else ""</programlisting>
   </varlistentry>
 
 
+  <varlistentry><term><function>builtins.splitVersion</function>
+  <replaceable>s</replaceable></term>
+
+    <listitem><para>Split a string representing a version into its
+    components, by the same version splitting logic underlying the
+    version comparison in <link linkend="ssec-version-comparisons">
+    <command>nix-env -u</command></link>.</para></listitem>
+
+  </varlistentry>
+
+
   <varlistentry><term><function>builtins.concatLists</function>
   <replaceable>lists</replaceable></term>