11# The workbench entrypoint,
2- { pkgs , lib
2+ { pkgs
33 # This provided project attrset will be used all over the workbench instead
44 # of the flake's `pkgs` or `cardanoNodePackages`. This allows to easily
55 # parametrize the whole build at any point, be it only for the workbench in
1414, haskellProject
1515} :
1616
17- with lib ;
18-
1917let
2018
19+ inherit ( pkgs ) lib ;
20+
2121 # Workbench derivation to create derivations from `wb` commands.
2222 ##############################################################################
2323
4343 profile = [ ".sh" ".json" ] ;
4444 topology = [ ".sh" ] ;
4545 } ;
46- in lib . any id [
46+ in lib . any lib . id [
4747 # Include the "wb" file (has no ".sh", workbench's entrypoint).
4848 ( relativePath == "wb" )
4949 # Include all top level "*.sh" files.
6161 )
6262 )
6363 # Include only the extensions defined above.
64- ( lib . any id
65- ( lib . attrValues ( mapAttrs
64+ ( lib . any lib . id
65+ ( lib . attrValues ( lib . mapAttrs
6666 ( dirName : suffixes :
6767 ( lib . hasPrefix ( dirName + "/" ) relativePath )
6868 &&
108108# Output
109109################################################################################
110110
111- in pkgs . lib . fix ( self : {
111+ in lib . fix ( self : {
112112
113113 inherit workbench ;
114114 inherit haskellProject ;
@@ -118,7 +118,7 @@ in pkgs.lib.fix (self: {
118118 # profileName -> profile
119119 profile = profileName :
120120 ( import ./profile/profile.nix
121- { inherit pkgs lib ;
121+ { inherit pkgs ;
122122 workbenchNix = self ;
123123 inherit profileName ;
124124 }
@@ -143,7 +143,7 @@ in pkgs.lib.fix (self: {
143143 , profiling
144144 } :
145145 ( backendRegistry . "${ backendName } " )
146- { inherit pkgs lib ;
146+ { inherit pkgs ;
147147 inherit haskellProject ;
148148 inherit stateDir basePort ;
149149 # The `useCabalRun` and `profiling` flags are set in the backend to
@@ -187,7 +187,7 @@ in pkgs.lib.fix (self: {
187187 ;
188188 in import ./backend/runner.nix
189189 {
190- inherit pkgs lib ;
190+ inherit pkgs ;
191191 inherit haskellProject ;
192192 inherit workbench ;
193193 inherit profile backend ;
0 commit comments