-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathshell.nix
44 lines (42 loc) · 872 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
39
40
41
42
43
44
{ nixpkgs ? ./nix/nixpkgs.nix
, ghcide ? false
, haskellLanguageServer ? true
}:
let
pkgs = import nixpkgs { };
# Fetch from GitHub
devShellsInputs =
import
(builtins.fetchGit {
url = "git@github.com:tweag/nix-dev-shells.git";
name = "nix-dev-shell";
rev = "9dbca810bc4dd243fc5a62bd0eef81898798e286";
})
# Use your own version of nixpkgs
{ inherit pkgs; }
;
in
pkgs.mkShell {
buildInputs = with devShellsInputs;
# Common packages (e.g. tmate, git, ...)
(common { })
# Standard Haskell dev environment
++
(
haskell {
inherit haskellLanguageServer;
haskellLanguageServerGhcVersion = "ghc884";
ghcide = false;
}
)
# Custom
++
[
pkgs.cabal-install
pkgs.docker
pkgs.zlib
pkgs.git
pkgs.cabal-install
]
;
}