-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
flora.cabal
592 lines (564 loc) · 13.3 KB
/
flora.cabal
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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
cabal-version: 3.0
name: flora
version: 1.0.21
homepage: https://github.com/flora-pm/flora-server/#readme
bug-reports: https://github.com/flora-pm/flora-server/issues
author: Théophile Choutri
maintainer: Théophile Choutri
license: BSD-3-Clause
build-type: Simple
extra-source-files: LICENSE
extra-doc-files:
CHANGELOG.md
README.md
tested-with: GHC ==9.6.6
source-repository head
type: git
location: https://github.com/flora-pm/flora-server
flag prod
description:
Compile the project with additional optimisations (takes longer)
default: False
manual: True
common common-extensions
default-extensions:
NoStarIsType
DataKinds
DeriveAnyClass
DerivingStrategies
DerivingVia
DuplicateRecordFields
LambdaCase
OverloadedLabels
OverloadedRecordDot
OverloadedStrings
PackageImports
PolyKinds
RecordWildCards
StrictData
TypeFamilies
UndecidableInstances
ViewPatterns
default-language: GHC2021
common common-ghc-options
ghc-options:
-Wall -Wcompat -Widentities -Wincomplete-record-updates
-Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints
-fhide-source-paths -Wno-unused-do-bind -fshow-hole-constraints
-Wno-unticked-promoted-constructors -Werror=unused-imports
-fdicts-strict -fmax-worker-args=16 -fspec-constr-recursive=16
-Wunused-packages
if flag(prod)
ghc-options:
-flate-specialise -funbox-strict-fields
-finline-generics-aggressively -fexpose-all-unfoldings
common common-rts-options
ghc-options: -rtsopts -threaded "-with-rtsopts=-N -T"
library
import: common-extensions
import: common-ghc-options
extra-libraries: stdc++
cxx-options: -std=c++17 -Wall -D__EMBEDDED_SOUFFLE__
cxx-sources: cbits/categorise.cpp
hs-source-dirs: ./src/core ./src/datatypes
-- cabal-fmt: expand src/core
-- cabal-fmt: expand src/datatypes
exposed-modules:
Advisories.AffectedVersionRange.Orphans
Advisories.CAPEC.Orphans
Advisories.CVSS.Orphans
Advisories.CWE.Orphans
Advisories.HsecId.Orphans
Advisories.Keyword.Orphans
Advisories.System.Orphans
Data.Aeson.Orphans
Data.Positive
Data.Text.Display.Orphans
Data.Text.HTML
Data.Time.Orphans
Database.PostgreSQL.Simple.Orphans
Distribution.Orphans
Distribution.Orphans.BuildType
Distribution.Orphans.CompilerFlavor
Distribution.Orphans.ConfVar
Distribution.Orphans.PackageFlag
Distribution.Orphans.Version
Effectful.Poolboy
Flora.Environment
Flora.Environment.Config
Flora.Import.Categories
Flora.Import.Categories.Tuning
Flora.Import.Package
Flora.Import.Package.Bulk
Flora.Import.Package.Types
Flora.Import.Types
Flora.Logging
Flora.Model.Admin.Report
Flora.Model.BlobIndex.Internal
Flora.Model.BlobIndex.Query
Flora.Model.BlobIndex.Types
Flora.Model.BlobIndex.Update
Flora.Model.BlobStore.API
Flora.Model.BlobStore.Types
Flora.Model.Category
Flora.Model.Category.Query
Flora.Model.Category.Types
Flora.Model.Category.Update
Flora.Model.Component.Query
Flora.Model.Component.Types
Flora.Model.Downloads
Flora.Model.Job
Flora.Model.Organisation
Flora.Model.Package
Flora.Model.Package.Guard
Flora.Model.Package.Orphans
Flora.Model.Package.Publisher
Flora.Model.Package.Query
Flora.Model.Package.Types
Flora.Model.Package.Update
Flora.Model.PackageGroup.Query
Flora.Model.PackageGroup.Types
Flora.Model.PackageGroup.Update
Flora.Model.PackageGroupPackage.Query
Flora.Model.PackageGroupPackage.Types
Flora.Model.PackageGroupPackage.Update
Flora.Model.PackageIndex.Query
Flora.Model.PackageIndex.Types
Flora.Model.PackageIndex.Update
Flora.Model.PersistentSession
Flora.Model.Release
Flora.Model.Release.Guard
Flora.Model.Release.Query
Flora.Model.Release.Types
Flora.Model.Release.Update
Flora.Model.Requirement
Flora.Model.User
Flora.Model.User.Query
Flora.Model.User.Update
Flora.QRCode
Flora.Search
Flora.Tracing
JSON
Log.Backend.File
Lucid.Orphans
OSV.Reference.Orphans
Pandoc.Orphans
Servant.API.ContentTypes.GZip
build-depends:
, aeson
, attoparsec
, base ^>=4.18.2
, base16-bytestring
, base64
, bytestring
, Cabal-syntax
, colourista
, containers
, cryptohash-md5
, cryptohash-sha256
, cryptonite
, cryptonite-conduit
, cvss
, dani-servant-lucid2
, deepseq
, deriving-aeson
, directory
, effectful
, effectful-core
, effectful-plugin
, envparse
, filepath
, hsec-core
, hsec-sync
, http-api-data
, http-media
, iso8601-time
, JuicyPixels
, log-base
, log-effectful
, lucid2
, memory
, monad-time-effectful
, network
, odd-jobs
, openapi3
, optics-core
, osv
, pandoc-types
, pcre2
, pg-entity
, pg-transact
, pg-transact-effectful
, poolboy
, postgresql-simple
, pretty
, qrcode-core
, qrcode-juicypixels
, resource-pool
, sel
, servant
, servant-server
, slugify
, souffle-haskell ==4.0.0
, streamly
, streamly-core
, tar
, text
, text-display
, time
, tracing
, tracing-effectful
, unliftio
, utf8-string
, uuid
, vector
, zlib
ghc-options: -fplugin=Effectful.Plugin
library flora-advisories
import: common-extensions
import: common-ghc-options
hs-source-dirs: ./src/advisories
-- cabal-fmt: expand src/advisories
exposed-modules:
Advisories.Import
Advisories.Import.Error
Advisories.Model.Advisory.Query
Advisories.Model.Advisory.Types
Advisories.Model.Advisory.Update
Advisories.Model.Affected.Query
Advisories.Model.Affected.Types
Advisories.Model.Affected.Update
build-depends:
, aeson
, base
, Cabal-syntax
, containers
, cvss
, deepseq
, effectful
, flora
, hsec-core
, hsec-sync
, hsec-tools
, osv
, pandoc-types
, pg-entity
, pg-transact-effectful
, postgresql-simple
, text
, time
, tracing
, tracing-effectful
, uuid
, validation-selective
, vector
library flora-web
import: common-extensions
import: common-ghc-options
hs-source-dirs: ./src/web
-- cabal-fmt: expand src/web
exposed-modules:
FloraWeb.API.Errors
FloraWeb.API.Routes
FloraWeb.API.Routes.Packages
FloraWeb.API.Routes.Packages.Types
FloraWeb.API.Server
FloraWeb.API.Server.Packages
FloraWeb.Client
FloraWeb.Common.Auth
FloraWeb.Common.Auth.TwoFactor
FloraWeb.Common.Auth.Types
FloraWeb.Common.Guards
FloraWeb.Common.OpenSearch
FloraWeb.Common.Pagination
FloraWeb.Common.Tracing
FloraWeb.Common.Utils
FloraWeb.Components.Alert
FloraWeb.Components.Button
FloraWeb.Components.CategoryCard
FloraWeb.Components.Header
FloraWeb.Components.Icons
FloraWeb.Components.MainSearchBar
FloraWeb.Components.Navbar
FloraWeb.Components.PackageListHeader
FloraWeb.Components.PackageListItem
FloraWeb.Components.PaginationNav
FloraWeb.Components.Pill
FloraWeb.Components.SlimSearchBar
FloraWeb.Components.Utils
FloraWeb.Components.VersionListHeader
FloraWeb.Embedded
FloraWeb.Links
FloraWeb.LiveReload
FloraWeb.Pages.Routes
FloraWeb.Pages.Routes.Admin
FloraWeb.Pages.Routes.Categories
FloraWeb.Pages.Routes.Packages
FloraWeb.Pages.Routes.Search
FloraWeb.Pages.Routes.Sessions
FloraWeb.Pages.Routes.Settings
FloraWeb.Pages.Server
FloraWeb.Pages.Server.Admin
FloraWeb.Pages.Server.Categories
FloraWeb.Pages.Server.Packages
FloraWeb.Pages.Server.Search
FloraWeb.Pages.Server.Sessions
FloraWeb.Pages.Server.Settings
FloraWeb.Pages.Templates
FloraWeb.Pages.Templates.Admin
FloraWeb.Pages.Templates.Admin.Packages
FloraWeb.Pages.Templates.Admin.Users
FloraWeb.Pages.Templates.Error
FloraWeb.Pages.Templates.Haddock
FloraWeb.Pages.Templates.Packages
FloraWeb.Pages.Templates.Screens.Categories
FloraWeb.Pages.Templates.Screens.Categories.Index
FloraWeb.Pages.Templates.Screens.Categories.Show
FloraWeb.Pages.Templates.Screens.Home
FloraWeb.Pages.Templates.Screens.Packages
FloraWeb.Pages.Templates.Screens.Search
FloraWeb.Pages.Templates.Screens.Sessions
FloraWeb.Pages.Templates.Screens.Settings
FloraWeb.Pages.Templates.Types
FloraWeb.Routes
FloraWeb.Servant.Common
FloraWeb.Server
FloraWeb.Session
FloraWeb.Types
build-depends:
, aeson
, async
, base ^>=4.18.2
, base32
, bytestring
, Cabal-syntax
, chronos
, cmark-gfm
, colourista
, containers
, cookie
, dani-servant-lucid2
, data-default
, deepseq
, deriving-aeson
, effectful
, effectful-core
, effectful-plugin
, extra
, flora
, flora-jobs
, haddock-library
, htmx-lucid
, http-api-data
, http-client
, http-client-tls
, http-media
, http-types
, log-base
, log-effectful
, lucid2
, monad-time
, monad-time-effectful
, mtl
, network-uri
, odd-jobs
, one-time-password ==3.0.0.0
, openapi3
, optics-core
, pg-entity
, pg-transact-effectful
, postgresql-simple
, pretty
, PyF
, raven-haskell
, resource-pool
, safe-exceptions
, sel
, servant
, servant-client
, servant-client-core
, servant-openapi3
, servant-server
, text
, text-display
, time
, torsor
, tracing
, tracing-effectful
, uuid
, vector
, vector-algorithms
, wai
, wai-app-static
, wai-log
, wai-middleware-heartbeat
, warp
, xml-conduit
, xml-conduit-writer
ghc-options: -fplugin=Effectful.Plugin
library flora-jobs
import: common-extensions
import: common-ghc-options
hs-source-dirs: src/jobs-worker
-- cabal-fmt expand: src/jobs-worker
exposed-modules:
FloraJobs.Render
FloraJobs.Runner
FloraJobs.Scheduler
FloraJobs.ThirdParties.Hackage.API
FloraJobs.ThirdParties.Hackage.Client
FloraJobs.Types
build-depends:
, aeson
, base
, bytestring
, Cabal-syntax
, commonmark
, commonmark-extensions
, containers
, effectful
, effectful-core
, effectful-plugin
, flora
, http-client
, http-media
, http-types
, log-base
, log-effectful
, monad-time-effectful
, odd-jobs
, pg-entity
, pg-transact-effectful
, poolboy
, postgresql-simple
, req
, resource-pool
, servant
, servant-client
, servant-client-core
, text
, text-display
, time
, typed-process-effectful
, vector
ghc-options: -fplugin=Effectful.Plugin
executable flora-server
import: common-extensions
import: common-ghc-options
import: common-rts-options
main-is: Main.hs
hs-source-dirs: app/server
build-depends:
, base
, containers
, effectful
, flora
, flora-jobs
, flora-web
, log-base
, log-effectful
, pg-entity
, pg-transact-effectful
, postgresql-simple
, resource-pool
, text
, vector
executable flora-cli
import: common-extensions
import: common-ghc-options
import: common-rts-options
main-is: Main.hs
other-modules: DesignSystem
hs-source-dirs: app/cli
build-depends:
, base
, bytestring
, Cabal-syntax
, containers
, effectful
, effectful-core
, effectful-plugin
, envparse
, filepath
, flora
, flora-web
, log-base
, log-effectful
, lucid2
, monad-time-effectful
, optics-core
, optparse-applicative
, pg-transact-effectful
, poolboy
, PyF
, sel
, text
, text-display
, time
, transformers
, uuid
, vector
, zlib
test-suite flora-test
import: common-extensions
import: common-ghc-options
import: common-rts-options
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: test
build-depends:
, aeson
, base
, bytestring
, Cabal-syntax
, containers
, effectful
, effectful-core
, effectful-plugin
, exceptions
, filepath
, flora
, flora-advisories
, flora-web
, hedgehog
, http-client
, log-base
, log-effectful
, monad-time-effectful
, optics-core
, pg-entity
, pg-transact
, pg-transact-effectful
, poolboy
, postgresql-migration
, postgresql-simple
, resource-pool
, sel
, servant
, servant-client
, servant-server
, tar
, tasty
, tasty-hunit
, tasty-test-reporter
, text
, time
, tracing-effectful
, uuid
, vector
, vector-algorithms
, zlib
ghc-options: -fplugin=Effectful.Plugin
other-modules:
Flora.AdvisorySpec
Flora.BlobSpec
Flora.CabalSpec
Flora.CategorySpec
Flora.ImportSpec
Flora.OddJobSpec
Flora.PackageGroupSpec
Flora.PackageSpec
Flora.SearchSpec
Flora.TemplateSpec
Flora.TestUtils
Flora.UserSpec