Skip to content

Instantly share code, notes, and snippets.

@caiorss
Created November 2, 2016 08:48
Show Gist options
  • Save caiorss/d3e5a5772d882156f711c45c1ad5abd4 to your computer and use it in GitHub Desktop.
Save caiorss/d3e5a5772d882156f711c45c1ad5abd4 to your computer and use it in GitHub Desktop.
Install Haskell Platform packages using Nix package manager
# 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