-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
23 lines (22 loc) · 767 Bytes
/
Copy pathshell.nix
File metadata and controls
23 lines (22 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
let
pkgsCabal =
import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/0c924ab22aa8818c701ad9d94be34dc7934d692c.tar.gz";
sha256 = "1llhad9y24bqp7ib8ls2fwk4jpqakyrzhy7p2djkqlbsnhzcvd1q";
}) {};
in
with (import ./nix/pkgs.nix {});
pkgs.mkShell {
nativeBuildInputs = [
pkgs.haskell.compiler.ghc90
pkgsCabal.cabal-install # use version of cabal-install with "multiple components"-support (https://github.com/haskell/cabal/pull/8726)
pkgs.zlib.dev
pkgs.pkg-config
pkgs.git
pkgs.graphviz
pkgs.gnused # TODO.sh depends on GNU grep
];
shellHook = ''
export PATH="$(pwd)/hls":$PATH # Run the command '$(nix-build build-hls.sh.nix)/bin/build-hls.sh' to install HLS in this directory
'';
}