blob: 9e66c808a5b44b8fd20bbf038777c84a812da965 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ pkgs ? import sources.nixpkgs { overlays = [ (import ./pkgs { }) ]; }
, sources ? import ./nix/sources.nix
}:
let
haskellPackages = pkgs.haskell.packages.ghc98;
jsHaskellPackages = pkgs.pkgsCross.ghcjs.haskell.packages.ghc98;
in
rec {
inherit (haskellPackages) backend cli;
inherit (jsHaskellPackages) frontend;
shell = haskellPackages.shellFor {
packages = _: [
haskellPackages.autotypes
haskellPackages.backend
haskellPackages.cli
haskellPackages.common
haskellPackages.cli
haskellPackages.frontend
];
buildInputs = [
haskellPackages.astore
haskellPackages.autotypes
haskellPackages.cabal-install
haskellPackages.haskell-language-server
haskellPackages.ormolu
pkgs.niv
(pkgs.writeScriptBin "reload" ''
set -efu
${haskellPackages.ghcid.bin}/bin/ghcid -c \
'${haskellPackages.cabal-install}/bin/cabal new-repl' \
-T ':run Main.main'
'')
];
withHoogle = true;
withHaddock = true;
};
}
|