{ pkgs ? import sources.nixpkgs { } , sources ? import ./nix/sources.nix }: let haskellPackages = pkgs.haskellPackages.override { overrides = self: super: { acms = self.callCabal2nix "acms" ./. { }; astore = self.callCabal2nix "astore" sources.json2sql { }; autotypes = self.callCabal2nix "autotypes" ./autotypes { }; json2sql = self.callCabal2nix "json2sql" sources.json2sql { }; }; }; in rec { inherit (haskellPackages) acms; shell = haskellPackages.shellFor { packages = _: [ acms haskellPackages.autotypes ]; buildInputs = [ haskellPackages.cabal-install haskellPackages.ormolu ]; withHoogle = true; withHaddock = true; }; }