diff options
author | Graham Christensen <graham@grahamc.com> | 2018-10-02 15:59:59 -0400 |
---|---|---|
committer | Graham Christensen <graham@grahamc.com> | 2018-10-02 15:59:59 -0400 |
commit | c07ba7c8560250d1b184698e6453b6d5ca11846f (patch) | |
tree | 231574c29ded6e00e53c1211869ed16c5b2003d1 /doc/functions/shell.xml | |
parent | 444e04b98571ad65269c8a988c4a9f772ca616a2 (diff) | |
download | nixlib-c07ba7c8560250d1b184698e6453b6d5ca11846f.tar nixlib-c07ba7c8560250d1b184698e6453b6d5ca11846f.tar.gz nixlib-c07ba7c8560250d1b184698e6453b6d5ca11846f.tar.bz2 nixlib-c07ba7c8560250d1b184698e6453b6d5ca11846f.tar.lz nixlib-c07ba7c8560250d1b184698e6453b6d5ca11846f.tar.xz nixlib-c07ba7c8560250d1b184698e6453b6d5ca11846f.tar.zst nixlib-c07ba7c8560250d1b184698e6453b6d5ca11846f.zip |
nixpkgs docs: Reformat
Diffstat (limited to 'doc/functions/shell.xml')
-rw-r--r-- | doc/functions/shell.xml | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/doc/functions/shell.xml b/doc/functions/shell.xml index a8d2a30cb508..e5031c9463c0 100644 --- a/doc/functions/shell.xml +++ b/doc/functions/shell.xml @@ -2,19 +2,18 @@ xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="sec-pkgs-mkShell"> - <title>pkgs.mkShell</title> + <title>pkgs.mkShell</title> - <para> - <function>pkgs.mkShell</function> is a special kind of derivation - that is only useful when using it combined with - <command>nix-shell</command>. It will in fact fail to instantiate - when invoked with <command>nix-build</command>. - </para> + <para> + <function>pkgs.mkShell</function> is a special kind of derivation that is + only useful when using it combined with <command>nix-shell</command>. It will + in fact fail to instantiate when invoked with <command>nix-build</command>. + </para> - <section xml:id="sec-pkgs-mkShell-usage"> - <title>Usage</title> + <section xml:id="sec-pkgs-mkShell-usage"> + <title>Usage</title> - <programlisting><![CDATA[ +<programlisting><![CDATA[ { pkgs ? import <nixpkgs> {} }: pkgs.mkShell { # this will make all the build inputs from hello and gnutar @@ -23,5 +22,5 @@ pkgs.mkShell { buildInputs = [ pkgs.gnumake ]; } ]]></programlisting> - </section> + </section> </section> |