Skip to content

Instantly share code, notes, and snippets.

@vyorkin
Created June 15, 2019 11:07
Show Gist options
  • Select an option

  • Save vyorkin/e8fd44a086c02407568a8af35ce7f2b3 to your computer and use it in GitHub Desktop.

Select an option

Save vyorkin/e8fd44a086c02407568a8af35ce7f2b3 to your computer and use it in GitHub Desktop.
parallel & concurrent haskell book shell.nix
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc7102" }:
let
inherit (nixpkgs) pkgs;
metapkgs = import (builtins.fetchTarball "https://github.com/matthewbauer/metapkgs/archive/master.tar.gz");
ghc = metapkgs.${compiler};
in pkgs.stdenv.mkDerivation {
name = "my-haskell-env-0";
buildInputs = [ ghc nixpkgs.zlib ];
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