-
Notifications
You must be signed in to change notification settings - Fork 197
Expand file tree
/
Copy pathshell.nix
More file actions
38 lines (38 loc) · 961 Bytes
/
shell.nix
File metadata and controls
38 lines (38 loc) · 961 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
# 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 =
xz.overrideAttrs (old: { dontDisableStatic = true; });
in mkShell {
nativeBuildInputs = [
cabal-install
ghc
haskell-language-server
haskellPackages.fourmolu
haskellPackages.cabal-fmt
hlint
zlib.dev
git
pkg-config
xz
bzip2_static
bzip2_static.dev
libffi_static.dev
gmp_static.dev
lzma_static.dev
] ++ lib.optionals stdenv.isLinux [
zlib.static
glibc.dev
glibc.static
];
shellHook = ''
export LANG=C.UTF-8
'';
}