-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
30 lines (28 loc) · 784 Bytes
/
default.nix
File metadata and controls
30 lines (28 loc) · 784 Bytes
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
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;
hspkgs = pkgs.haskell-nix.cabalProject {
src = pkgs.haskell-nix.haskellLib.cleanGit { name = "hackcell"; src = ./.; };
compiler-nix-name = haskellCompiler;
};
shell = hspkgs.shellFor {
withHoogle = true;
buildInputs = [
pkgs.cabal-install
pkgs.haskellPackages.ghcid
pkgs.haskellPackages.hpack
pkgs.haskellPackages.brittany
ghcide
];
};
in
{
inherit shell;
inherit hspkgs;
myProject = hspkgs.hackcell;
}