-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
32 lines (29 loc) · 729 Bytes
/
shell.nix
File metadata and controls
32 lines (29 loc) · 729 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
#!/usr/bin/env nix-shell
with import <nixos-22.11> {};
let
ghc = haskell.compiler.ghc925;
hls = haskell-language-server.override {
supportedGhcVersions = [ "92" ];
};
haskell-packages = haskell.packages.ghc925;
ormolu = haskell-packages.ormolu;
hpack = haskell-packages.hpack;
apply-refact = haskell-packages.apply-refact;
in
haskell.lib.buildStackProject {
name = "hls";
buildInputs = [
zlib
xz
hls
ghc
stack
hlint
ormolu
apply-refact
openapi-generator-cli
];
# shellHook doesn't work with zsh
# SEE: https://github.com/chisui/zsh-nix-shell#shell-hooks
# use local .zshrc with zsh plugin: https://github.com/freak2geek/zshrc
}