-
Notifications
You must be signed in to change notification settings - Fork 178
/
Copy pathshell.nix
35 lines (35 loc) · 893 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
# Basic requirements to set up a development environment
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
libffi_static =
libffi.overrideAttrs (old: { dontDisableStatic = true; });
bzip2_static =
bzip2.overrideAttrs (old: { dontDisableStatic = true; });
gmp_static =
gmp.overrideAttrs (old: { dontDisableStatic = true; });
lzma_static =
lzma.overrideAttrs (old: { dontDisableStatic = true; });
in mkShell {
nativeBuildInputs = [
cabal-install
ghc
haskell-language-server
haskellPackages.fourmolu
haskellPackages.cabal-fmt
hlint
zlib.dev
zlib.static
git
glibc.dev
glibc.static
bzip2_static
bzip2_static.dev
libffi_static.dev
gmp_static.dev
lzma_static.dev
];
shellHook = ''
export LANG=C.UTF-8
'';
}