11# editorconfig-checker-disable-file
22
3- { inputs , pkgs , lib , project , agda-tools , metatheory , r-with-packages , ghc } :
3+ { inputs , pkgs , lib , project , agda-tools , metatheory , r-with-packages , project-variant } :
44
55let
66
77 # Toolchain versions used in dev shells. Consumed by `project.shellFor`.
8- all- tools = {
8+ tools = rec {
99 "ghc96" . cabal = project . projectVariants . ghc96 . tool "cabal" "3.12.1.0" ;
1010 "ghc96" . cabal-fmt = project . projectVariants . ghc96 . tool "cabal-fmt" "latest" ;
1111 "ghc96" . haskell-language-server = project . projectVariants . ghc96 . tool "haskell-language-server" "latest" ;
2121 "ghc912" . fourmolu = project . projectVariants . ghc912 . tool "fourmolu" "latest" ;
2222 "ghc912" . hlint = project . projectVariants . ghc912 . tool "hlint" "latest" ;
2323 "ghc912" . hp2ps = project . projectVariants . ghc912 . tool "hp2ps" "latest" ;
24- } ;
2524
26- tools = all-tools . ${ ghc } ;
25+ "ghc96-profiled" = tools . "ghc96" ;
26+
27+ } . ${ project-variant } ;
2728
2829 # Pre-commit hooks for the repo. Injects into shell via shellHook.
2930 pre-commit-check = inputs . pre-commit-hooks . lib . ${ pkgs . system } . run {
131132 "export LOCALE_ARCHIVE=${ pkgs . glibcLocales } /lib/locale/locale-archive" ;
132133
133134 # Full developer shell with many tools.
134- full-shell = project . projectVariants . ${ ghc } . shellFor {
135- name = "plutus-shell-${ ghc } " ;
135+ full-shell = project . projectVariants . ${ project-variant } . shellFor {
136+ name = "plutus-shell-${ project-variant } " ;
136137
137138 buildInputs = lib . concatLists [
138139 common-pkgs
153154
154155
155156 # Lightweight shell with minimal tools.
156- quick-shell = project . projectVariants . ${ ghc } . shellFor {
157- name = "plutus-shell-${ ghc } " ;
157+ quick-shell = project . projectVariants . ${ project-variant } . shellFor {
158+ name = "plutus-shell-${ project-variant } " ;
158159 tools = { cabal = "latest" ; } ;
159160 shellHook = ''
160161 ${ locale-archive-hook }
@@ -167,10 +168,11 @@ let
167168 # Select shell by compiler used in the project variant.
168169 shell = {
169170 ghc96 = full-shell ;
171+ ghc96-profiled = full-shell ;
170172 ghc98 = quick-shell ;
171173 ghc910 = quick-shell ;
172174 ghc912 = full-shell ;
173- } . ${ ghc } ;
175+ } . ${ project-variant } ;
174176
175177in
176178
0 commit comments