-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshell.nix
38 lines (30 loc) · 887 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
let
nixpkgs = import ./nix/pinnedNix.nix { };
inherit (nixpkgs) pkgs;
inherit (pkgs)
haskell sqitchPg postgresql_12 cabal2nix hlint ghcid cabal-install arion
stylish-haskell;
haskellPackages = haskell.packages.ghc8104;
project = import ./release.nix { };
in pkgs.stdenv.mkDerivation {
name = "shell";
buildInputs = project.env.nativeBuildInputs ++ [
cabal-install
ghcid
hlint
arion
sqitchPg
postgresql_12
cabal2nix
stylish-haskell
];
# https://github.com/NixOS/nix/issues/599
LOCALE_ARCHIVE = "/usr/lib/locale/locale-archive";
# https://github.com/mpickering/hie-bios/issues/25#issuecomment-537718071
shellHook = ''
export NIX_GHC="$(which ghc)"
export NIX_GHCPKG="$(which ghc-pkg)"
export NIX_GHC_DOCDIR="$NIX_GHC/../../share/doc/ghc/html"
export NIX_GHC_LIBDIR="$(ghc --print-libdir)"
'';
}