-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdevenv.nix
More file actions
39 lines (30 loc) · 830 Bytes
/
devenv.nix
File metadata and controls
39 lines (30 loc) · 830 Bytes
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
39
{ pkgs, lib, config, inputs, ... }:
{
# https://devenv.sh/packages/
packages = [ pkgs.llvm pkgs.ormolu pkgs.nixfmt pkgs.haskellPackages.hlint ];
# https://devenv.sh/languages/
# languages.rust.enable = true;
# https://devenv.sh/processes/
# processes.cargo-watch.exec = "cargo-watch";
# https://devenv.sh/services/
# services.postgres.enable = true;
# https://devenv.sh/scripts/
languages.haskell = {
enable = true;
package = pkgs.haskell.compiler.ghc964;
};
pre-commit.hooks = {
# lint shell scripts
shellcheck.enable = false;
markdownlint.enable = false;
# lint nix
nixfmt.enable = true;
deadnix.enable = false;
nil.enable = false;
# format haskell
ormolu.enable = true;
cabal-fmt.enable = true;
# lint haskell
hlint.enable = true;
};
}