Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gilligan/nix-ghcide

nix expressions for hie-core
https://github.com/gilligan/nix-ghcide

ghcide haskell nix

Last synced: 2 months ago
JSON representation

nix expressions for hie-core

Awesome Lists containing this project

README

        

## ghcide for nix

Nix expressions for [ghcide](https://github.com/digital-asset/ghcide). Provides binaries for

- ghc844
- ghc864
- ghc865

Also provided is `ghcide-wrapper` which picks one of the versions above based on the
output of `ghc --version`.

### ghcide-wrapper

Instead of specifying one of the ghc-specific versions just specify `ghcide-wrapper --lsp` as the
lsp server command in your editor configuration.

### Installation

```
$ nix-env -iA ghcide-wrapper -f https://github.com/gilligan/nix-ghcide/tarball/master
```

### Cachix

```
$ cachix use ghcide
```

### But.. Why?

I am aware that there is [ghcide-nix](https://github.com/hercules-ci/ghcide-nix) already
and `ghcide` should land in nixpkgs/master sometime soon but I had already started so i might
as well stick to it ;) This repo builds on Nixpkgs' `haskellPackages` rather than relying on [`haskell.nix`](https://input-output-hk.github.io/haskell.nix/). It
makes liberal use of jailbreaking to compile ghcide with what's in `haskellPackages`.