Advertisement
Guest User

Untitled

a guest
Aug 21st, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. { nixpkgs ? import <nixpkgs> {}, compiler ? "ghc7102" }:
  2. let
  3. inherit (nixpkgs) pkgs;
  4. ghc = pkgs.haskell.packages.ghcWithPackages (ps: with ps; []);
  5. in
  6. pkgs.stdenv.mkDerivation {
  7. name = "my-haskell-env-0";
  8. buildInputs = [ ghc ];
  9. shellHook = "eval $(egrep ^export ${ghc}/bin/ghc)";
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement