1---
2title: pkgs.mkShell
3author: zimbatm
4date: 2017-10-30
5---
6
7# mkShell
8
9pkgs.mkShell is a special kind of derivation that is only useful when using
10it combined with nix-shell. It will in fact fail to instantiate when invoked
11with nix-build.
12
13## Usage
14
15```nix
16{ pkgs ? import <nixpkgs> {} }:
17pkgs.mkShell {
18 # this will make all the build inputs from hello and gnutar available to the shell environment
19 inputsFrom = with pkgs; [ hello gnutar ];
20 buildInputs = [ pkgs.gnumake ];
21}
22```