summaryrefslogtreecommitdiff
path: root/shell.nix
blob: 50b81960ee32442c0e1190b3ba6d47d11680883c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ pkgs ? (import <nixpkgs> {})
, haskellPackages ? pkgs.haskellPackages
}:

let
  ghc = haskellPackages.ghcWithPackages (ps: with ps; [ mtl ]);
in
pkgs.stdenv.mkDerivation rec {
  name = "gausshs-env";
  buildInputs = [ ghc ];
  shellHook = ''
    eval $(egrep ^export ${ghc}/bin/ghc)
    export PROMPT_INFO="${name}"
  '';
}