aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/expressions
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2018-02-14 16:39:53 +0100
committerGitHub <noreply@github.com>2018-02-14 16:39:53 +0100
commit96d48318cb838cb67916e443266210c46fe4bf87 (patch)
tree3fb353d3eaa7334a127d5fe30cd6499abe002d16 /doc/manual/expressions
parent3fe9767dd33499c2560d209dc13a01f5fcead1f0 (diff)
parentb095c06139fa267e6050e4c95208c627cc6251b8 (diff)
Merge pull request #1870 from shlevy/split-version
Add splitVersion primop.
Diffstat (limited to 'doc/manual/expressions')
-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 81770bcf6..8a32ed8b5 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>