All Projects → domenkozar → Hie Nix

domenkozar / Hie Nix

Nix packages for Haskell IDE Engine

Programming Languages

haskell
3896 projects

Labels

Projects that are alternatives of or similar to Hie Nix

Nixcloud Webservices
This nixpkgs extension, called nixcloud-webservices, focuses on ease of deployment of web-related technologies.
Stars: ✭ 98 (-16.95%)
Mutual labels:  nix
Nix Haskell Monorepo
Pragmatic tutorial on how to use nix with a haskell monorepo
Stars: ✭ 111 (-5.93%)
Mutual labels:  nix
Flake Utils
Pure Nix flake utility functions
Stars: ✭ 113 (-4.24%)
Mutual labels:  nix
Nix Linter
Linter for the Nix expression language
Stars: ✭ 100 (-15.25%)
Mutual labels:  nix
Nix Home
Utilities for working with user configurations in Nix.
Stars: ✭ 107 (-9.32%)
Mutual labels:  nix
Nixos Config
My NixOS configuration files. (This public mirror is not updated anymore.)
Stars: ✭ 110 (-6.78%)
Mutual labels:  nix
System
My system configuration
Stars: ✭ 94 (-20.34%)
Mutual labels:  nix
Docker
Dockerfiles to package Nix in a minimal docker container
Stars: ✭ 114 (-3.39%)
Mutual labels:  nix
Powerline Rs
GitLab: https://gitlab.com/jD91mZM2/powerline-rs
Stars: ✭ 108 (-8.47%)
Mutual labels:  nix
Nix Config
My NixOS configuration
Stars: ✭ 112 (-5.08%)
Mutual labels:  nix
Nixos Config
Mirror of https://code.balsoft.ru/balsoft/nixos-config
Stars: ✭ 100 (-15.25%)
Mutual labels:  nix
Nix Tree
Interactively browse the dependency graph of your Nix derivations.
Stars: ✭ 104 (-11.86%)
Mutual labels:  nix
Nixwrt
Build images for embedded MIPS SoCs using NixPkgs (experimental)
Stars: ✭ 111 (-5.93%)
Mutual labels:  nix
Styx
Static site generator in Nix expression language.
Stars: ✭ 99 (-16.1%)
Mutual labels:  nix
Iohk Ops
NixOps deployment configuration for IOHK devops
Stars: ✭ 113 (-4.24%)
Mutual labels:  nix
Hydra Tutorial
Sample configuration files for setting up your own Hydra continuous integration server.
Stars: ✭ 95 (-19.49%)
Mutual labels:  nix
Yarn2nix
Generate nix expressions from a yarn.lock file [maintainer=???]
Stars: ✭ 110 (-6.78%)
Mutual labels:  nix
Mbp Nixos
Instructions and scripts related to getting NixOS running on a newer generation MBP
Stars: ✭ 115 (-2.54%)
Mutual labels:  nix
Nix Emacs Ci
Emacs installations for continuous integration
Stars: ✭ 114 (-3.39%)
Mutual labels:  nix
Nix Deploy
Deploy software or an entire NixOS system configuration to another NixOS system
Stars: ✭ 111 (-5.93%)
Mutual labels:  nix

Superseeded by https://github.com/Infinisil/all-hies

This project is around just for reference, please use all-hies instead.


Purpose

The purpose of this repository is to provide HIE for each major GHC version installable via Nix.

Hie built with specific GHC needs to match the major version of GHC used on development project.

Install

For linux you can use binaries provided by Cachix. See instructions how to configure cachix. Otherwise (on macOS) be prepared to compile for a while.

To install a wrapper that will be able to pick between hie-8.2 and hie-8.4:

$ nix-env -iA hies -f https://github.com/domenkozar/hie-nix/tarball/master
$ hie-8.2 --help
$ hie-8.4 --help

Or for just a specific GHC and get hie:

$ nix-env -iA hie84 -f https://github.com/domenkozar/hie-nix/tarball/master
$ hie --help

Updating HIE

# edit commit in update.sh
$ ./update.sh

FAQ

How do I make editor integrate the right hie version?

Install hies which will include all supported GHC versions and the wrapper supported by most editors.

How do I integrate my editor?

See https://github.com/haskell/haskell-ide-engine#editor-integration

Does hie-nix work with Stack?

Yes, but make sure you have Nix enabled in either stack.yaml in your project or globally:

$ cat ~/.stack/config.yaml
nix: 
  enable: true

How can I expose Nix's hoogle database to HIE

hie looks at the environment variable HIE_HOOGLE_DATABASE, one can find the index by looking at Nix's Hoogle wrapper script.

One can add the below to the shell's shellHook. Make sure to use ghcWithHoogle or ghc.withHoogle when creating the shell to ensure the Hoogle database is created.

export HIE_HOOGLE_DATABASE="$(cat $(which hoogle) | sed -n -e 's|.*--database \(.*\.hoo\).*|\1|p')"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].