Skip to content

Instantly share code, notes, and snippets.

@wfaler
Last active August 29, 2015 14:23
Show Gist options
  • Save wfaler/fd67c4332e1a7488cb96 to your computer and use it in GitHub Desktop.
Save wfaler/fd67c4332e1a7488cb96 to your computer and use it in GitHub Desktop.
Haskell shell.nix instructions
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