adding nix shell for building and using HIE

This commit is contained in:
Brandon Elam Barker 2018-11-06 20:41:48 +00:00
parent a6fd344958
commit 8aed16403e

16
shell.nix Normal file
View File

@ -0,0 +1,16 @@
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "haskell-ide-engine";
buildInputs = [
gmp
zlib
ncurses
haskellPackages.cabal-install
];
src = null;
shellHook = ''
export LD_LIBRARY_PATH=${gmp}/lib:${zlib}/lib:${ncurses}/lib
export PATH=$PATH:$HOME/.local/bin
'';
}