{ pkgs ? (import {}) , haskellPackages ? (import ./default.nix { inherit pkgs; }).haskellPackages }: let ghc = (haskellPackages.ghcWithPackages (ps: (payload ++ depends ++ (with ps; [ hlint cabal2nix cabal-install ])))).override { ignoreCollisions = true; }; payload = builtins.attrValues (import ./default.nix {}); depends = builtins.concatLists (builtins.map (x: if builtins.hasAttr "nativeBuildInputs" x then x.nativeBuildInputs else []) (builtins.attrValues (import ./default.nix {}))); in pkgs.stdenv.mkDerivation rec { bareName = "sequence"; name = "${bareName}-env"; buildInputs = [ ghc ]; shellHook = '' eval $(egrep ^export ${ghc}/bin/ghc) export PROMPT_INFO="${name}" ''; }