blob: 15334f5f965ecd0885eddfa33a8a74c33ee433f2 (
plain)
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
|
let
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs {};
inherit (pkgs) haskellPackages;
all-hls = pkgs.fetchFromGitHub {
owner = "masaeedu";
repo = "all-hls";
rev = "155e57d7ca9f79ce293360f98895e9bd68d12355";
sha256 = "04s3mrxjdr7gmd901l1z23qglqmn8i39v7sdf2fv4zbv6hz24ydb";
};
hls = import all-hls {
platform = "Linux";
version = "0.4.0";
ghc = "8.6.5";
}; # All parameters are optional. The default values are shown here.
haskellDeps = ps: with ps; [
base
lens
parsec
mtl
readline
];
ghc = haskellPackages.ghcWithPackages haskellDeps;
externalPackages = [
ghc
pkgs.gdb
pkgs.cabal2nix
haskellPackages.cabal-install
haskellPackages.hoogle
];
in
pkgs.stdenv.mkDerivation {
name = "env";
buildInputs = externalPackages ++ [ hls ];
}
|