aboutsummaryrefslogtreecommitdiffstats
path: root/default.nix
blob: 0545c15b5da7d1859e7bfc6ceddb0365ed875797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ pkgs ? import (import ./nix/sources.nix).nixpkgs { }
}:
let
  haskellPackages = pkgs.haskellPackages.override
    {
      overrides = self: super: {
        sh = self.callCabal2nix "sh" ./. { };
      };
    };
in
{
  shell = haskellPackages.shellFor {
    packages = (_: [
      haskellPackages.sh
    ]);
    buildInputs = [
      pkgs.cabal-install
      pkgs.niv
      pkgs.ormolu
    ];
    withHoogle = true;
    withHaddock = true;
  };
}