1- let f = { hackage , pkgs , pkg-def , pkg-def-overlays ? [ ] , modules ? [ ] } : let
2- buildModules = f { inherit hackage pkg-def pkg-def-overlays modules ; pkgs = pkgs . buildPackages ; } ;
1+ let f = { hackage , pkgs , pkg-def , pkg-def-extras ? [ ] , modules ? [ ] } : let
2+ buildModules = f { inherit hackage pkg-def pkg-def-extras modules ; pkgs = pkgs . buildPackages ; } ;
33in pkgs . lib . evalModules {
44 modules = modules ++ [
55 ( { lib , ... } : {
@@ -33,7 +33,7 @@ in pkgs.lib.evalModules {
3333 # or
3434 # { y = ./foo.nix; }
3535 # As such the desugarer desugars this short hand syntax.
36- let desugar = overlay :
36+ let desugar = extras :
3737 let
3838 isPath = x : builtins . typeOf x == "path" ;
3939 # rewrite
@@ -51,19 +51,19 @@ in pkgs.lib.evalModules {
5151 # into
5252 # x.revision = import ./some/path;
5353 expand-paths = pkg : if ! ( isPath pkg . revision ) then pkg else { revision = import pkg . revision ; } ;
54- # apply injection and expansion to the "packages" in overlay .
54+ # apply injection and expansion to the "packages" in extras .
5555 in lib . mapAttrs ( k : v : if k != "packages"
5656 then v
5757 else lib . mapAttrs ( _ : pkg : ( expand-paths ( inject-revision pkg ) ) ) v )
58- ( inject-packages overlay ) ;
59- # fold any potential `pkg-def-overlays `
58+ ( inject-packages extras ) ;
59+ # fold any potential `pkg-def-extras `
6060 # onto the `pkg-def`.
6161 #
6262 # This means you can have a base definition (e.g. stackage)
6363 # and augment it with custom packages to your liking.
6464 in foldl' lib . recursiveUpdate
6565 ( pkg-def hackage )
66- ( map ( p : desugar ( if builtins . isFunction p then p hackage else p ) ) pkg-def-overlays )
66+ ( map ( p : desugar ( if builtins . isFunction p then p hackage else p ) ) pkg-def-extras )
6767 ;
6868
6969 } )
0 commit comments