-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathflake.nix
75 lines (72 loc) · 2.52 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
74
75
{
inputs = {
common.url = "github:nammayatri/common";
nixpkgs.follows = "common/nixpkgs";
haskell-flake.follows = "common/haskell-flake";
passetto-hs.url = "github:juspay/passetto/bb92cf1dd9699662d2a7bb96cd6a6aed6f20e8ff";
passetto-hs.flake = false;
clickhouse-haskell.url = "github:nammayatri/clickhouse-haskell";
clickhouse-haskell.inputs.common.follows = "common";
prometheus-haskell.url = "github:juspay/prometheus-haskell/more-proc-metrics";
prometheus-haskell.inputs.haskell-flake.follows = "common/haskell-flake";
euler-hs = {
url = "github:nammayatri/euler-hs";
inputs.nixpkgs.follows = "nixpkgs";
inputs.haskell-flake.follows = "haskell-flake";
};
};
outputs = inputs:
inputs.common.lib.mkFlake { inherit inputs; } {
debug = true;
perSystem = { self', pkgs, lib, config, ... }: {
haskellProjects.default = {
imports = [
inputs.euler-hs.haskellFlakeProjectModules.output
inputs.clickhouse-haskell.haskellFlakeProjectModules.output
];
packages = {
passetto-client.source = inputs.passetto-hs + /client;
passetto-core.source = inputs.passetto-hs + /core;
};
settings = {
# Tests and documentation generation fail for some reason.
euler-hs = {
check = false;
jailbreak = true;
haddock = false;
libraryProfiling = false;
};
wai-middleware-prometheus = {
check = false;
haddock = false;
};
euler-events-hs = {
check = false;
libraryProfiling = false;
jailbreak = true;
};
prometheus-client = {
check = false;
libraryProfiling = false;
jailbreak = true;
};
clickhouse-haskell.jailbreak = true;
generic-deriving.check = false;
singletons-th.jailbreak = true;
};
autoWire = [ "packages" "checks" ];
};
process-compose = { };
packages.default = self'.packages.mobility-core;
devShells.default = pkgs.mkShell {
name = "shared-kernel-shell";
# cf. https://haskell.flake.page/devshell#composing-devshells
inputsFrom = [
config.haskellProjects.default.outputs.devShell
config.pre-commit.devShell
config.flake-root.devShell
];
};
};
};
}