-
Notifications
You must be signed in to change notification settings - Fork 2
/
shell.nix
30 lines (30 loc) · 1.02 KB
/
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
let
pkgs = import <nixpkgs> {};
dhall = import (fetchTarball {
url = https://hydra.dhall-lang.org/jobset/dhall-haskell/master/channel/latest/nixexprs.tar.bz2;
# sha256 = "0636c1lz1ndsdskgvqcbrfx2bav6hycdwlbsbyv0lvl9ykca1mk4";
}) {};
nix-tools = import (fetchTarball {
url = https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz;
sha256 = "08sf4k9w6gn2scp86bcq0j27akjrxykf8dziy12dm61aqhwy948q";
}) {};
# hls = (import (builtins.fetchTarball "https://github.com/shajra/nix-hls/tarball/master") {ghcVersion = "ghc884";});
in
pkgs.mkShell {
buildInputs = [
pkgs.stack
pkgs.dhall
pkgs.glibc
(pkgs.haskell-language-server.override { supportedGhcVersions = [ "884" ]; })
# pkgs.haskellPackages.ghcide
dhall.linux-dhall-lsp-server
pkgs.haskellPackages.ormolu
pkgs.haskellPackages.floskell
pkgs.haskellPackages.brittany
pkgs.cabal2nix
];
shellHook = ''
export TEST="IN HERE!"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}${pkgs.glibc}/lib
'';
}