@@ -988,6 +988,41 @@ set debug-file-directory ~/.nix-profile/lib/debug
989</section>
989</section>
991+<section xml:id="ssec-installCheck-phase"><title>The installCheck phase</title>
993+<para>The installCheck phase checks whether the package was installed
994+correctly by running its test suite against the installed directories.
995+The default <function>installCheck</function> calls <command>make
996+installcheck</command>.</para>
999+ <title>Variables controlling the installCheck phase</title>
1002+ <term><varname>doInstallCheck</varname></term>
1003+ <listitem><para>If set to a non-empty string, the installCheck phase is
1004+ executed, otherwise it is skipped (default). Thus you should set
1006+ <programlisting>doInstallCheck = true;</programlisting>
1008+ in the derivation to enable install checks.</para></listitem>
1012+ <term><varname>preInstallCheck</varname></term>
1013+ <listitem><para>Hook executed at the start of the installCheck
1014+ phase.</para></listitem>
1018+ <term><varname>postInstallCheck</varname></term>
1019+ <listitem><para>Hook executed at the end of the installCheck
1020+ phase.</para></listitem>
992<section xml:id="ssec-distribution-phase"><title>The distribution
1027<section xml:id="ssec-distribution-phase"><title>The distribution
993phase</title>
1028phase</title>