-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
43 lines (39 loc) · 1.03 KB
/
flake.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
31
32
33
34
35
36
37
38
39
40
41
42
43
{
description = "Nix flake for Que-Lambda development";
inputs = {
flake-utils = {
url = github:numtide/flake-utils;
};
nixpkgs = {
url = github:NixOS/nixpkgs;
};
};
outputs =
{ self
, flake-utils
, nixpkgs
}:
flake-utils.lib.eachDefaultSystem (system:
{
devShells.default =
let
pkgs = import nixpkgs { inherit system; };
ghcName = "ghc942";
in
pkgs.mkShell {
buildInputs = [
pkgs.stdenv
pkgs.jq
pkgs.cabal2nix
pkgs.haskell.compiler.${ghcName}
pkgs.haskell.packages.${ghcName}.cabal-install
# pkgs.haskell.packages.${ghcName}.ghcid
pkgs.haskell.packages.${ghcName}.haskell-language-server
# pkgs.haskell.packages.${ghcName}.hlint
# pkgs.haskell.packages.${ghcName}.hoogle
#pkgs.haskell.packages.${ghcName}.hspec-discover
# pkgs.haskell.packages.${ghcName}.ormolu
];
};
});
}