-
Notifications
You must be signed in to change notification settings - Fork 20
/
flake.nix
73 lines (66 loc) · 2.33 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
haskell-flake.url = "github:srid/haskell-flake";
};
outputs = inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = inputs.nixpkgs.lib.systems.flakeExposed;
imports = [ inputs.haskell-flake.flakeModule ];
perSystem = { self', pkgs, config, ... }: {
packages.default = self'.packages.fortran-src-ghc92-fortran-src;
devShells.default = self'.devShells.fortran-src-ghc92;
haskellProjects.ghc92 = import ./haskell-flake-ghc92.nix pkgs;
haskellProjects.fortran-src-ghc92 = {
basePackages = config.haskellProjects.ghc92.outputs.finalPackages;
devShell = {
tools = hp: {
# use nixpkgs cabal-install
cabal-install = pkgs.cabal-install;
# disable these while unused (often slow/annoying to build)
haskell-language-server = null;
ghcid = null;
hlint = null;
};
};
};
haskellProjects.ghc94 = import ./haskell-flake-ghc94.nix pkgs;
haskellProjects.fortran-src-ghc94 = {
basePackages = config.haskellProjects.ghc94.outputs.finalPackages;
devShell = {
tools = hp: {
# use nixpkgs cabal-install
cabal-install = pkgs.cabal-install;
# disable these while unused (often slow/annoying to build)
haskell-language-server = null;
ghcid = null;
hlint = null;
};
};
};
haskellProjects.ghc96 = {
basePackages = pkgs.haskell.packages.ghc96;
devShell = {
tools = hp: {
# disable these while unused (often slow/annoying to build)
haskell-language-server = null;
ghcid = null;
hlint = null;
};
};
};
haskellProjects.ghc98 = {
basePackages = pkgs.haskell.packages.ghc98;
devShell = {
tools = hp: {
# disable these while unused (often slow/annoying to build)
haskell-language-server = null;
ghcid = null;
hlint = null;
};
};
};
};
};
}