-
-
Notifications
You must be signed in to change notification settings - Fork 405
Open
Labels
Description
Is your enhancement request related to a problem? Please describe.
- According https://haskell-language-server.readthedocs.io/en/stable/contributing/contributing.html#building-with-nix. Using nix-shell to execute wrapper.
- Executing
cabal run haskell-language-server-wrapper lsp
- Code run to
haskell-language-server/exe/Wrapper.hs
Line 157 in be30f3e
mexes <- liftIO $ traverse findExecutable candidates - The
mexe
found byfindExecutable
turns out as following. Rather than exe fromdist-newstyle
which containscabal build
's output.
mexes =
[ Just "/nix/store/x4njcm292dm8wgqjhxyp4jxcx77sz3x2-haskell-language-server-2.10.0.0/bin/haskell-language-server-9.8.4"
, Just "/nix/store/x4njcm292dm8wgqjhxyp4jxcx77sz3x2-haskell-language-server-2.10.0.0/bin/haskell-language-server"
]
- The exes on nix store is added in here. Rather than
cabal build
's output
haskell-language-server/flake.nix
Line 71 in be30f3e
hpkgs.haskell-language-server
Describe the solution you'd like
- Maybe upgrade the documentation https://haskell-language-server.readthedocs.io/en/stable/contributing/contributing.html#building-with-nix. Using nix to compile and startup Wrapper?
- Maybe change
findExecutable
way to find thecabal build
's exe? - Maybe precompile tools chains than import?
haskell-language-server/flake.nix
Line 71 in be30f3e
hpkgs.haskell-language-server
Describe alternatives you've considered
Or I need help, Maybe my execution method has issue.
Additional context
None.