Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { nixpkgs ? import <nixpkgs> {}, compiler ? "ghc7102" }:
- let
- inherit (nixpkgs) pkgs;
- ghc = pkgs.haskell.packages.ghcWithPackages (ps: with ps; []);
- in
- pkgs.stdenv.mkDerivation {
- name = "my-haskell-env-0";
- buildInputs = [ ghc ];
- shellHook = "eval $(egrep ^export ${ghc}/bin/ghc)";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement