File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,16 @@ in project.shellFor {
78
78
79
79
inherit withHoogle ;
80
80
81
+ # HACK
82
+ # The workbench shell uses cabalWrapped, which removes the `source-repository-package` stanzas
83
+ # from `cabal.project`. The idea is to use prebuilt ones provided by haskell.nix. However,
84
+ # haskell.nix is clever enough to not include `source-repository-package`s in the shell
85
+ # package db, because it knows that cabal will rebuild them. So you just end up with nothing!
86
+ # We can hacak around this by overriding haskell.nix's selection of which packages the shell
87
+ # is prepared for, so that it *doesn't* include the `source-repository-package` ones
88
+ # (the default is *local* packages which includes them, we select *project* pacakges which doesn't)
89
+ packages = ps : builtins . attrValues ( haskellLib . selectProjectPackages ps ) ;
90
+
81
91
tools = {
82
92
haskell-language-server = {
83
93
version = "latest" ;
You can’t perform that action at this time.
0 commit comments