{ n ? import } let packages = { ... haskell = n.haskellPackages.ghcWithPackages (hpkgs: with hpkgs; [ xmonad ... ]); inherit (n) BuildEnv in ( BuildEnv { ... pkgs? = packages.xyz } packages.haskell )