-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
73 lines (64 loc) · 2.34 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";
rerefined.url = "github:raehik/rerefined";
rerefined.flake = false;
bytezap.url = "github:raehik/bytezap";
bytezap.flake = false;
strongweak.url = "github:raehik/strongweak";
strongweak.flake = false;
};
outputs = inputs:
let
defDevShell = compiler: {
mkShellArgs.name = "${compiler}";
hoogle = false;
tools = _: {
haskell-language-server = null;
hlint = null;
ghcid = null;
};
};
in
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.ghc98-binrep;
devShells.default = self'.devShells.ghc98;
haskellProjects.ghc910 = {
basePackages = pkgs.haskell.packages.ghc910;
devShell = defDevShell "ghc910";
packages.finite-typelits.source = "0.2.1.0";
packages.vector-sized.source = "1.6.1";
# https://github.com/phadej/defun/pull/5
settings.defun-core.jailbreak = true;
# waiting on nixpkgs update
packages.rerefined.source = inputs.rerefined;
settings.strongweak.broken = false;
packages.strongweak.source = inputs.strongweak;
packages.bytezap.source = inputs.bytezap;
};
haskellProjects.ghc98 = {
basePackages = pkgs.haskell.packages.ghc98;
devShell = defDevShell "ghc98";
# waiting on nixpkgs update
packages.rerefined.source = inputs.rerefined;
settings.strongweak.broken = false;
packages.strongweak.source = inputs.strongweak;
packages.bytezap.source = inputs.bytezap;
};
haskellProjects.ghc96 = {
basePackages = pkgs.haskell.packages.ghc96;
devShell = defDevShell "ghc96";
# waiting on nixpkgs update
packages.rerefined.source = inputs.rerefined;
settings.strongweak.broken = false;
packages.strongweak.source = inputs.strongweak;
packages.bytezap.source = inputs.bytezap;
};
};
};
}