@@ -0,0 +1,27 @@
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-pkgs-mkShell">
5+ <title>pkgs.mkShell</title>
6+
7+ <para>
8+ <function>pkgs.mkShell</function> is a special kind of derivation
9+ that is only useful when using it combined with
10+ <command>nix-shell</command>. It will in fact fail to instantiate
11+ when invoked with <command>nix-build</command>.
12+ </para>
13+
14+ <section xml:id="sec-pkgs-mkShell-usage">
15+ <title>Usage</title>
16+
17+ <programlisting><![CDATA[
18+{ pkgs ? import <nixpkgs> {} }:
19+pkgs.mkShell {
20+ # this will make all the build inputs from hello and gnutar
21+ # available to the shell environment
22+ inputsFrom = with pkgs; [ hello gnutar ];
23+ buildInputs = [ pkgs.gnumake ];
24+}
25+]]></programlisting>
26+ </section>
27+</section>