$ cat shell.nix with import {}; mkShell { buildInputs = [(python2.withPackages (ps: with ps; [ numpy matplotlib tensorflow tensorflow-tensorboard ]))]; }