Created
June 15, 2019 11:07
-
-
Save vyorkin/e8fd44a086c02407568a8af35ce7f2b3 to your computer and use it in GitHub Desktop.
parallel & concurrent haskell book shell.nix
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
| { 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