Created
November 2, 2016 08:48
-
-
Save caiorss/d3e5a5772d882156f711c45c1ad5abd4 to your computer and use it in GitHub Desktop.
Install Haskell Platform packages using Nix package manager
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
| # Install Haskell platform libraries from: | |
| # | |
| # - https://www.haskell.org/platform/contents.html | |
| # | |
| { nixpkgs ? import <nixpkgs> {}, compiler ? "ghc801" }: | |
| let | |
| inherit (nixpkgs) pkgs; | |
| ghc = pkgs.haskell.packages.${compiler}.ghcWithPackages (ps: with ps; [ | |
| mtl random network HTTP HUnit HGL parsec template-haskell transformers async attoparsec cgi exceptions fixed GLURaw GLUT half hashable haskell-src html HTTP multipart network "network-uri" ObjectName old-locale old-time OpenGL OpenGLRaw parallel parsec primitive random regex-base regex-compat stm syb text xhtml zlib QuickCheck | |
| ]); | |
| in | |
| pkgs.stdenv.mkDerivation { | |
| name = "haskell-learn"; | |
| buildInputs = [ ghc ]; | |
| shellHook = "eval $(egrep ^export ${ghc}/bin/ghc)"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment