diff options
Diffstat (limited to 'doc/manual/writing-nix-expressions.xml')
-rw-r--r-- | doc/manual/writing-nix-expressions.xml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/manual/writing-nix-expressions.xml b/doc/manual/writing-nix-expressions.xml index b8d097ae2286..1cc5bb95b8c3 100644 --- a/doc/manual/writing-nix-expressions.xml +++ b/doc/manual/writing-nix-expressions.xml @@ -635,13 +635,14 @@ language.</para> complicated example (from the Nix expression for <link xlink:href='http://www.trolltech.com/products/qt'>Qt</link>): -<programlisting> +<programlisting> configureFlags = " -system-zlib -system-libpng -system-libjpeg ${if openglSupport then "-dlopen-opengl -L${mesa}/lib -I${mesa}/include -L${libXmu}/lib -I${libXmu}/include" else ""} - ${if threadSupport then "-thread" else "-no-thread"}</programlisting> + ${if threadSupport then "-thread" else "-no-thread"} +";</programlisting> Note that Nix expressions and strings can be arbitrarily nested; in this case the outer string contains various antiquotations that |