-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
33 lines (31 loc) · 898 Bytes
/
default.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
let
haskellCompiler = "ghc883";
sources = import ./nix/sources.nix;
ghcide = (import sources.ghcide-nix {})."ghcide-${haskellCompiler}";
haskellNix = import sources.iohk-hnix {};
nixpkgsSrc = haskellNix.sources.nixpkgs-2003;
nixpkgsArgs = haskellNix.nixpkgsArgs;
pkgs = import nixpkgsSrc nixpkgsArgs;
nixpkgs = import sources.nixpkgs {};
hspkgs = pkgs.haskell-nix.cabalProject {
src = pkgs.haskell-nix.haskellLib.cleanGit { name = "lentil"; src = ./.; };
compiler-nix-name = "${haskellCompiler}";
};
shell = hspkgs.shellFor {
withHoogle = true;
buildInputs = [
pkgs.cabal-install
pkgs.haskellPackages.ghcid
pkgs.haskellPackages.hpack
pkgs.haskellPackages.brittany
pkgs.haskellPackages.hlint
ghcide
nixpkgs.haskellPackages.dhall_1_32_0
];
};
in
{
inherit shell;
inherit hspkgs;
lentil = hspkgs.lentil;
}