{ pkgs ? import {} , ghc ? "ghc901" , withHoogle ? false }: let haskellPackages = if ghc == null then pkgs.haskellPackages else pkgs.haskell.packages.${ghc}; hs = haskellPackages.extend (with pkgs.haskell.lib; hself: hsuper: { symantic-reify = buildFromSdist (hself.callCabal2nix "symantic-reify" ./. {}); } ); in hs.symantic-reify // { shell = hs.shellFor { doBenchmark = true; packages = p: [ p.symantic-reify ]; nativeBuildInputs = [ hs.cabal-install hs.ghcid ]; buildInputs = [ ]; inherit withHoogle; }; }