Last active
August 29, 2015 14:23
-
-
Save wfaler/fd67c4332e1a7488cb96 to your computer and use it in GitHub Desktop.
Haskell shell.nix instructions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cabal2nix --sha256=0 cabal-file.cabal > shell.nix | |
#add the following to the top line | |
haskellPackages ? (import <nixpkgs> {}).haskellPackages, | |
# remove sha line, add src location | |
src = ./src; | |
# add required build-tools to mkDerivation section, happy, alex & ghc-mod used for emacs | |
buildTools = [ haskellPackages.cabal-install haskellPackages.happy haskellPackages.alex haskellPackages.hlint]; # haskellPackages.ghc-mod - ghc-mod broken right now | |
#drop into nix-shell with "nix-shell" and start hacking! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment