{ pkgs ? (import {}) , haskellPackages ? (import ./default.nix {}).haskellPackages }: let trivstreamPackages = builtins.attrValues (import ./default.nix {}); ghc = haskellPackages.ghcWithPackages (ps: trivstreamPackages ++ utilities ps ++ testDeps ps); utilities = (ps: with ps; [ hlint cabal2nix ]); testDeps = (ps: with ps; [ ]); in pkgs.stdenv.mkDerivation rec { name = "trivstream-env"; buildInputs = [ ghc ]; shellHook = '' eval $(egrep ^export ${ghc}/bin/ghc) export PROMPT_INFO="${name}" ''; }