{ pkgs ? (import {}) , compiler ? "ghc7102" }: let ghc = pkgs.haskell.packages.${compiler}.ghcWithPackages (ps: with ps; [ cabal-install hlint cabal2nix ] ++ (builtins.attrValues (import ./default.nix {}))); in pkgs.stdenv.mkDerivation rec { name = "thermoprint-env"; buildInputs = [ ghc ]; shellHook = '' eval $(egrep ^export ${ghc}/bin/ghc) export PROMPT_INFO="${name}" ''; }