forked from haskell/haskell-ide-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
haskell-ide-engine.nix
271 lines (265 loc) · 13.9 KB
/
haskell-ide-engine.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
let
buildDepError = pkg:
builtins.throw ''
The Haskell package set does not contain the package: ${pkg} (build dependency).
If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix.
'';
sysDepError = pkg:
builtins.throw ''
The Nixpkgs package set does not contain the package: ${pkg} (system dependency).
You may need to augment the system package mapping in haskell.nix so that it can be found.
'';
pkgConfDepError = pkg:
builtins.throw ''
The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency).
You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found.
'';
exeDepError = pkg:
builtins.throw ''
The local executable components do not include the component: ${pkg} (executable dependency).
'';
legacyExeDepError = pkg:
builtins.throw ''
The Haskell package set does not contain the package: ${pkg} (executable dependency).
If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix.
'';
buildToolDepError = pkg:
builtins.throw ''
Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency).
If this is a system dependency:
You may need to augment the system package mapping in haskell.nix so that it can be found.
If this is a Haskell dependency:
If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix.
'';
in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }:
{
flags = { pedantic = false; };
package = {
specVersion = "2.0";
identifier = { name = "haskell-ide-engine"; version = "0.14.0.0"; };
license = "BSD-3-Clause";
copyright = "2015 - 2019, TBD";
maintainer = "[email protected] (for now)";
author = "Many, TBD when we release";
homepage = "http://github.com/githubuser/haskell-ide-engine#readme";
url = "";
synopsis = "Provide a common engine to power any Haskell IDE";
description = "Please see README.md";
buildType = "Simple";
isLocal = true;
};
components = {
"library" = {
depends = [
(hsPkgs."Cabal" or (buildDepError "Cabal"))
(hsPkgs."Diff" or (buildDepError "Diff"))
(hsPkgs."HaRe" or (buildDepError "HaRe"))
(hsPkgs."aeson" or (buildDepError "aeson"))
(hsPkgs."apply-refact" or (buildDepError "apply-refact"))
(hsPkgs."async" or (buildDepError "async"))
(hsPkgs."base" or (buildDepError "base"))
(hsPkgs."brittany" or (buildDepError "brittany"))
(hsPkgs."bytestring" or (buildDepError "bytestring"))
(hsPkgs."Cabal" or (buildDepError "Cabal"))
(hsPkgs."cabal-helper" or (buildDepError "cabal-helper"))
(hsPkgs."containers" or (buildDepError "containers"))
(hsPkgs."data-default" or (buildDepError "data-default"))
(hsPkgs."directory" or (buildDepError "directory"))
(hsPkgs."filepath" or (buildDepError "filepath"))
(hsPkgs."floskell" or (buildDepError "floskell"))
(hsPkgs."fold-debounce" or (buildDepError "fold-debounce"))
(hsPkgs."ghc" or (buildDepError "ghc"))
(hsPkgs."ghc-exactprint" or (buildDepError "ghc-exactprint"))
(hsPkgs."ghc-mod" or (buildDepError "ghc-mod"))
(hsPkgs."ghc-mod-core" or (buildDepError "ghc-mod-core"))
(hsPkgs."gitrev" or (buildDepError "gitrev"))
(hsPkgs."haddock-api" or (buildDepError "haddock-api"))
(hsPkgs."haddock-library" or (buildDepError "haddock-library"))
(hsPkgs."haskell-lsp" or (buildDepError "haskell-lsp"))
(hsPkgs."haskell-lsp-types" or (buildDepError "haskell-lsp-types"))
(hsPkgs."haskell-src-exts" or (buildDepError "haskell-src-exts"))
(hsPkgs."hie-plugin-api" or (buildDepError "hie-plugin-api"))
(hsPkgs."hoogle" or (buildDepError "hoogle"))
(hsPkgs."hsimport" or (buildDepError "hsimport"))
(hsPkgs."hslogger" or (buildDepError "hslogger"))
(hsPkgs."lifted-async" or (buildDepError "lifted-async"))
(hsPkgs."lens" or (buildDepError "lens"))
(hsPkgs."monad-control" or (buildDepError "monad-control"))
(hsPkgs."monoid-subclasses" or (buildDepError "monoid-subclasses"))
(hsPkgs."mtl" or (buildDepError "mtl"))
(hsPkgs."optparse-simple" or (buildDepError "optparse-simple"))
(hsPkgs."parsec" or (buildDepError "parsec"))
(hsPkgs."process" or (buildDepError "process"))
(hsPkgs."rope-utf16-splay" or (buildDepError "rope-utf16-splay"))
(hsPkgs."safe" or (buildDepError "safe"))
(hsPkgs."sorted-list" or (buildDepError "sorted-list"))
(hsPkgs."stm" or (buildDepError "stm"))
(hsPkgs."tagsoup" or (buildDepError "tagsoup"))
(hsPkgs."text" or (buildDepError "text"))
(hsPkgs."transformers" or (buildDepError "transformers"))
(hsPkgs."unix-time" or (buildDepError "unix-time"))
(hsPkgs."unordered-containers" or (buildDepError "unordered-containers"))
(hsPkgs."vector" or (buildDepError "vector"))
(hsPkgs."versions" or (buildDepError "versions"))
(hsPkgs."yaml" or (buildDepError "yaml"))
(hsPkgs."hlint" or (buildDepError "hlint"))
];
buildable = true;
};
sublibs = {
"hie-test-utils" = {
depends = [
(hsPkgs."base" or (buildDepError "base"))
(hsPkgs."haskell-ide-engine" or (buildDepError "haskell-ide-engine"))
(hsPkgs."haskell-lsp" or (buildDepError "haskell-lsp"))
(hsPkgs."hie-plugin-api" or (buildDepError "hie-plugin-api"))
(hsPkgs."aeson" or (buildDepError "aeson"))
(hsPkgs."blaze-markup" or (buildDepError "blaze-markup"))
(hsPkgs."containers" or (buildDepError "containers"))
(hsPkgs."data-default" or (buildDepError "data-default"))
(hsPkgs."directory" or (buildDepError "directory"))
(hsPkgs."filepath" or (buildDepError "filepath"))
(hsPkgs."ghc-mod-core" or (buildDepError "ghc-mod-core"))
(hsPkgs."hslogger" or (buildDepError "hslogger"))
(hsPkgs."hspec" or (buildDepError "hspec"))
(hsPkgs."hspec-core" or (buildDepError "hspec-core"))
(hsPkgs."stm" or (buildDepError "stm"))
(hsPkgs."text" or (buildDepError "text"))
(hsPkgs."unordered-containers" or (buildDepError "unordered-containers"))
(hsPkgs."yaml" or (buildDepError "yaml"))
];
buildable = true;
};
};
exes = {
"hie" = {
depends = [
(hsPkgs."base" or (buildDepError "base"))
(hsPkgs."directory" or (buildDepError "directory"))
(hsPkgs."haskell-ide-engine" or (buildDepError "haskell-ide-engine"))
(hsPkgs."haskell-lsp" or (buildDepError "haskell-lsp"))
(hsPkgs."hie-plugin-api" or (buildDepError "hie-plugin-api"))
(hsPkgs."hslogger" or (buildDepError "hslogger"))
(hsPkgs."optparse-simple" or (buildDepError "optparse-simple"))
];
buildable = true;
};
"hie-wrapper" = {
depends = [
(hsPkgs."base" or (buildDepError "base"))
(hsPkgs."directory" or (buildDepError "directory"))
(hsPkgs."ghc-mod-core" or (buildDepError "ghc-mod-core"))
(hsPkgs."haskell-ide-engine" or (buildDepError "haskell-ide-engine"))
(hsPkgs."haskell-lsp" or (buildDepError "haskell-lsp"))
(hsPkgs."hie-plugin-api" or (buildDepError "hie-plugin-api"))
(hsPkgs."hslogger" or (buildDepError "hslogger"))
(hsPkgs."optparse-simple" or (buildDepError "optparse-simple"))
(hsPkgs."process" or (buildDepError "process"))
];
buildable = true;
};
};
tests = {
"unit-test" = {
depends = [
(hsPkgs."QuickCheck" or (buildDepError "QuickCheck"))
(hsPkgs."aeson" or (buildDepError "aeson"))
(hsPkgs."base" or (buildDepError "base"))
(hsPkgs."bytestring" or (buildDepError "bytestring"))
(hsPkgs."containers" or (buildDepError "containers"))
(hsPkgs."directory" or (buildDepError "directory"))
(hsPkgs."filepath" or (buildDepError "filepath"))
(hsPkgs."free" or (buildDepError "free"))
(hsPkgs."ghc" or (buildDepError "ghc"))
(hsPkgs."haskell-ide-engine" or (buildDepError "haskell-ide-engine"))
(hsPkgs."haskell-lsp-types" or (buildDepError "haskell-lsp-types"))
(hsPkgs."hie-test-utils" or (buildDepError "hie-test-utils"))
(hsPkgs."hie-plugin-api" or (buildDepError "hie-plugin-api"))
(hsPkgs."hoogle" or (buildDepError "hoogle"))
(hsPkgs."hspec" or (buildDepError "hspec"))
(hsPkgs."process" or (buildDepError "process"))
(hsPkgs."quickcheck-instances" or (buildDepError "quickcheck-instances"))
(hsPkgs."text" or (buildDepError "text"))
(hsPkgs."unordered-containers" or (buildDepError "unordered-containers"))
];
build-tools = [
(hsPkgs.buildPackages.cabal-helper or (pkgs.buildPackages.cabal-helper or (buildToolDepError "cabal-helper")))
(hsPkgs.buildPackages.hspec-discover or (pkgs.buildPackages.hspec-discover or (buildToolDepError "hspec-discover")))
];
buildable = true;
};
"dispatcher-test" = {
depends = [
(hsPkgs."base" or (buildDepError "base"))
(hsPkgs."aeson" or (buildDepError "aeson"))
(hsPkgs."data-default" or (buildDepError "data-default"))
(hsPkgs."directory" or (buildDepError "directory"))
(hsPkgs."filepath" or (buildDepError "filepath"))
(hsPkgs."ghc" or (buildDepError "ghc"))
(hsPkgs."haskell-ide-engine" or (buildDepError "haskell-ide-engine"))
(hsPkgs."haskell-lsp-types" or (buildDepError "haskell-lsp-types"))
(hsPkgs."hie-test-utils" or (buildDepError "hie-test-utils"))
(hsPkgs."hie-plugin-api" or (buildDepError "hie-plugin-api"))
(hsPkgs."hspec" or (buildDepError "hspec"))
(hsPkgs."stm" or (buildDepError "stm"))
(hsPkgs."text" or (buildDepError "text"))
(hsPkgs."unordered-containers" or (buildDepError "unordered-containers"))
];
build-tools = [
(hsPkgs.buildPackages.hspec-discover or (pkgs.buildPackages.hspec-discover or (buildToolDepError "hspec-discover")))
];
buildable = true;
};
"plugin-dispatcher-test" = {
depends = [
(hsPkgs."base" or (buildDepError "base"))
(hsPkgs."data-default" or (buildDepError "data-default"))
(hsPkgs."haskell-ide-engine" or (buildDepError "haskell-ide-engine"))
(hsPkgs."haskell-lsp-types" or (buildDepError "haskell-lsp-types"))
(hsPkgs."hie-plugin-api" or (buildDepError "hie-plugin-api"))
(hsPkgs."hie-test-utils" or (buildDepError "hie-test-utils"))
(hsPkgs."hspec" or (buildDepError "hspec"))
(hsPkgs."stm" or (buildDepError "stm"))
(hsPkgs."text" or (buildDepError "text"))
];
buildable = true;
};
"func-test" = {
depends = [
(hsPkgs."aeson" or (buildDepError "aeson"))
(hsPkgs."base" or (buildDepError "base"))
(hsPkgs."data-default" or (buildDepError "data-default"))
(hsPkgs."directory" or (buildDepError "directory"))
(hsPkgs."filepath" or (buildDepError "filepath"))
(hsPkgs."lsp-test" or (buildDepError "lsp-test"))
(hsPkgs."haskell-ide-engine" or (buildDepError "haskell-ide-engine"))
(hsPkgs."haskell-lsp-types" or (buildDepError "haskell-lsp-types"))
(hsPkgs."haskell-lsp" or (buildDepError "haskell-lsp"))
(hsPkgs."hie-test-utils" or (buildDepError "hie-test-utils"))
(hsPkgs."hie-plugin-api" or (buildDepError "hie-plugin-api"))
(hsPkgs."hspec" or (buildDepError "hspec"))
(hsPkgs."lens" or (buildDepError "lens"))
(hsPkgs."text" or (buildDepError "text"))
(hsPkgs."unordered-containers" or (buildDepError "unordered-containers"))
(hsPkgs."containers" or (buildDepError "containers"))
];
build-tools = [
(hsPkgs.buildPackages.hspec-discover or (pkgs.buildPackages.hspec-discover or (buildToolDepError "hspec-discover")))
(hsPkgs.buildPackages.haskell-ide-engine or (pkgs.buildPackages.haskell-ide-engine or (buildToolDepError "haskell-ide-engine")))
(hsPkgs.buildPackages.cabal-helper or (pkgs.buildPackages.cabal-helper or (buildToolDepError "cabal-helper")))
];
buildable = true;
};
"wrapper-test" = {
depends = [
(hsPkgs."base" or (buildDepError "base"))
(hsPkgs."hspec" or (buildDepError "hspec"))
(hsPkgs."directory" or (buildDepError "directory"))
(hsPkgs."process" or (buildDepError "process"))
(hsPkgs."haskell-ide-engine" or (buildDepError "haskell-ide-engine"))
];
buildable = true;
};
};
};
} // rec { src = (pkgs.lib).mkDefault ./.; }