-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
50 lines (44 loc) · 814 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
45
46
47
48
49
50
let
pkgs = import <nixpkgs> {};
hask = pkgs.haskellPackages.ghcWithPackages (p: with p; [
alex
cabal-install
cabal2nix
dhall
happy
hasktags
hlint
stylish-haskell
styx
]);
macs = pkgs.emacsWithPackages (p: with p; [
company
company-ghc
dante
editorconfig
flycheck
haskell-mode
hindent
magit
markdown-mode
multiple-cursors
nix-mode
rainbow-delimiters
smex
undo-tree
use-package
]);
in
with pkgs;
stdenv.mkDerivation rec {
name = "haskell-env";
buildInputs = [
git
hask # ghc with specific packages
macs # emacs with specific packages
];
shellHook = ''
export IN_HASKELL_SHELL=true
alias emacs="emacs -q -l $PWD/.emacs" # start emacs with local configuration
'';
}