-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathflake.nix
40 lines (37 loc) · 983 Bytes
/
flake.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
39
40
{
inputs.nixpkgs.url = "https://github.com/NixOS/nixpkgs/archive/2c2a09678ce2ce4125591ac4fe2f7dfaec7a609c.tar.gz";
outputs = { self, nixpkgs }:
let system = "x86_64-linux";
pkgs = import nixpkgs { inherit system;};
lib = pkgs.lib;
in
{
devShells.${system}.default = pkgs.mkShell rec {
buildInputs = with pkgs; [
# Haskell Deps
haskell.compiler.ghc8107
cabal-install
ghcid
hlint
cacert
haskellPackages.apply-refact
#fourmolu_0_6_0_0
git
haskellPackages.cabal-fmt
# DB Deps
postgresql_14
gmp
zlib
glibcLocales
haskellPackages.postgresql-simple-migration
# Extra
direnv
yarn
nodejs
];
shellHook = ''
PS1="<pg-entity> $PS1"
'';
};
};
}