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