aboutsummaryrefslogtreecommitdiff
path: root/shell.nix
blob: ba7d8528f80c5c440dd6766afba6c8486e7c415d (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
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
    parsec
  ];

  ghc = haskellPackages.ghcWithPackages haskellDeps;

  externalPackages = [
    ghc
    pkgs.gdb
    pkgs.cabal2nix
    haskellPackages.cabal-install
    haskellPackages.hoogle
    haskellPackages.hlint
  ];
in
pkgs.stdenv.mkDerivation {
  name = "aoc";
  buildInputs = externalPackages ++ [ hls ];
}