-
Notifications
You must be signed in to change notification settings - Fork 3
/
flake.nix
131 lines (116 loc) · 2.77 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
description = "Polysemy effects for concurrency";
inputs.hix.url = "git+https://git.tryp.io/tek/hix";
outputs = { hix, ... }: hix.lib.pro ({config, ...}: let
overrides = {jailbreak, unbreak, ...}: {
polysemy-test = jailbreak unbreak;
};
in {
ghcVersions = ["ghc94" "ghc96" "ghc98"];
compat.versions = ["ghc96"];
hackage.versionFile = "ops/version.nix";
main = "polysemy-process";
gen-overrides.enable = true;
managed = {
enable = true;
lower.enable = true;
sets = "each";
envs.solverOverrides = overrides;
latest.compiler = "ghc98";
};
inherit overrides;
cabal = {
license = "BSD-2-Clause-Patent";
license-file = "LICENSE";
author = "Torsten Schmits";
prelude = {
enable = true;
package.name = "incipit-core";
module = "IncipitCore";
};
meta = {
maintainer = "[email protected]";
github = "tek/polysemy-conc";
extra-source-files = ["readme.md" "changelog.md"];
};
};
packages.polysemy-conc = {
src = ./packages/conc;
cabal.meta = {
synopsis = "Polysemy effects for concurrency";
category = "Concurrency";
};
library = {
enable = true;
dependencies = [
"async"
"polysemy"
"polysemy-resume"
"polysemy-time"
"stm"
"stm-chans"
"torsor"
"unagi-chan"
];
};
test = {
enable = true;
dependencies = [
"async"
"hedgehog"
"polysemy"
"polysemy-plugin"
"polysemy-test"
"polysemy-time"
"tasty"
"tasty-hedgehog"
"time"
"torsor"
];
};
};
packages.polysemy-process = {
src = ./packages/process;
cabal.meta = {
synopsis = "Polysemy effects for system processes";
category = "Process";
};
library = {
enable = true;
dependencies = [
"async"
"path"
"path-io"
"polysemy"
config.packages.polysemy-conc.dep.minor
"polysemy-resume"
"polysemy-time"
"posix-pty"
"process"
"stm-chans"
"typed-process"
"unix"
];
};
test = {
enable = true;
dependencies = [
"async"
"hedgehog"
"polysemy"
config.packages.polysemy-conc.dep.minor
"polysemy-plugin"
"polysemy-process"
"polysemy-resume"
"polysemy-test"
"polysemy-time"
"tasty"
"tasty-expected-failure"
"tasty-hedgehog"
"typed-process"
"unix"
];
};
};
});
}