summary refs log blame commit diff
path: root/pkgs/development/haskell-modules/default.nix
blob: 8090732ddee698e53633fa2bb5a7820eabafc264 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                     
                                    

                                      

  

   

                                                                            
 



                                                
 
                                                                            
                                                                      


  
                


                               

                                                          
{ pkgs, stdenv, ghc, all-cabal-hashes
, compilerConfig ? (self: super: {})
, packageSetConfig ? (self: super: {})
, overrides ? (self: super: {})
}:

let

  inherit (stdenv.lib) extends makeExtensible;
  inherit (import ./lib.nix { inherit pkgs; }) overrideCabal makePackageSet;

  haskellPackages = makePackageSet {
    package-set = import ./hackage-packages.nix;
    inherit ghc;
  };

  commonConfiguration = import ./configuration-common.nix { inherit pkgs; };
  nixConfiguration = import ./configuration-nix.nix { inherit pkgs; };

in

  makeExtensible
    (extends overrides
      (extends packageSetConfig
        (extends compilerConfig
          (extends commonConfiguration
            (extends nixConfiguration haskellPackages)))))