Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Problems with Template Haskell on NixOS #2

Closed
jkachmar opened this issue Mar 12, 2021 · 1 comment · Fixed by #4
Closed

Fix Problems with Template Haskell on NixOS #2

jkachmar opened this issue Mar 12, 2021 · 1 comment · Fixed by #4
Assignees
Labels
bug Something isn't working

Comments

@jkachmar
Copy link
Owner

On NixOS there are a few problems with trying to use the statically linked Haskell Language Server binary with Template Haskell invocations.

cf haskell/haskell-language-server#122 (comment) for details


Some links that might help:

@jkachmar
Copy link
Owner Author

The project will probably have to be refactored a bit.

The macOS expressions are fine (because macOS doesn't support static linking), but the NixOS expressions are going to end up being relatively different if the solution ends up relying on buildFHSUserEnv.

Probably the best way to do this is have a sub-directory with macos.nix and nixos.nix, and then default.nix can use the isLinux/isDarwin logic to select the appropriate expression.

Maybe also move some logic out into a common module for selecting GHC support versions (etc.) that are common to both sub-expressions? idk.

@jkachmar jkachmar self-assigned this Mar 14, 2021
@jkachmar jkachmar added the bug Something isn't working label Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant