git.iko.soy/typeable/nixpkgs
on master help sign in
nixpkgs docs: move debug to its own file
commit3ac79c89b7da1f674c742f6a30385d37454e7f62 authorGraham Christensen <graham@grahamc.com> dateTue 2 Oct 2018, 14:07 (8 years ago) parent9ae39b3
2 files changed+22−18
doc/functions.xml+1−18 doc/functions/debug.xml+21
doc/functions.xml+1−18
@@ -10,24 +10,7 @@
1010
1111 <xi:include href="functions/overrides.xml" />
1212 <xi:include href="functions/generators.xml" />
13− <section xml:id="sec-debug">
14− <title>Debugging Nix Expressions</title>
15−
16− <para>
17− Nix is a unityped, dynamic language, this means every value can potentially
18− appear anywhere. Since it is also non-strict, evaluation order and what
19− ultimately is evaluated might surprise you. Therefore it is important to be
20− able to debug nix expressions.
21− </para>
22−
23− <para>
24− In the <literal>lib/debug.nix</literal> file you will find a number of
25− functions that help (pretty-)printing values while evaluation is runnnig.
26− You can even specify how deep these values should be printed recursively,
27− and transform them on the fly. Please consult the docstrings in
28− <literal>lib/debug.nix</literal> for usage information.
29− </para>
30− </section>
13+ <xi:include href="functions/debug.xml" />
3114 <section xml:id="sec-fhs-environments">
3215 <title>buildFHSUserEnv</title>
3316
doc/functions/debug.xmlnew file+21
@@ -0,0 +1,21 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xmlns:xi="http://www.w3.org/2001/XInclude"
4+ xml:id="sec-debug">
5+ <title>Debugging Nix Expressions</title>
6+
7+ <para>
8+ Nix is a unityped, dynamic language, this means every value can potentially
9+ appear anywhere. Since it is also non-strict, evaluation order and what
10+ ultimately is evaluated might surprise you. Therefore it is important to be
11+ able to debug nix expressions.
12+ </para>
13+
14+ <para>
15+ In the <literal>lib/debug.nix</literal> file you will find a number of
16+ functions that help (pretty-)printing values while evaluation is runnnig.
17+ You can even specify how deep these values should be printed recursively,
18+ and transform them on the fly. Please consult the docstrings in
19+ <literal>lib/debug.nix</literal> for usage information.
20+ </para>
21+ </section>