-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
39 lines (38 loc) · 899 Bytes
/
shell.nix
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
38
{ release ? import ./release.nix
, sources ? import ./nix/sources.nix
, pkgs ? import sources.nixpkgs{}
, packages ? import ./package.nix
, pkgs2 ? import <nixpkgs>{}
}:
let
# add ghc packages that should be available to the ghc here
ghc = (pkgs.haskellPackages.ghcWithPackages (
hpkgs: with hpkgs;[
zlib
scotty
aeson
blaze-markup
aeson
lens
]
));
in
pkgs.mkShell rec{
bi1 = with pkgs;[
ghcid # ghcide
zlib
ghc
cabal-install
haskellPackages.hlint # linting
haskellPackages.zlib
#haskellPackages.fourmolu # reformatting
#haskellPackages.hindent # reformatting
#haskellPackages.ormolu # reformatting
gnumake # makefile
rlwrap # to be able to easily re-enter last input when in the repl
];
bi2 = with pkgs2;[
haskellPackages.haskell-language-server
];
buildInputs = bi1 ++ bi2;
}