-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
package.yaml
175 lines (165 loc) · 3.6 KB
/
package.yaml
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
_config: !include ".hpack.config.yaml"
name: kupo
version: 0
stability: stable
github: "cardanosolutions/kupo"
license: MPL-2.0
author: "KtorZ <[email protected]>"
maintainer: "[email protected]"
copyright: "2020-2021 KtorZ"
description: Please see the README on GitHub at <https://github.com/cardanosolutions/kupo/tree/master/README.md>
synopsis: A daemon for building lookup indexes from entities of the Cardano blockchain
category: Web
extra-source-files:
- db/**/*.sql
data-files:
- docs/api/*.yaml
dependencies:
- base >= 4.7 && < 5
default-extensions: *default-extensions
flags:
production:
description: Compile executables for production.
default: False
manual: True
postgres:
description: Compile for use with a PostgresSQL DB instead of sqlite
manual: True
default: False
library:
source-dirs: src
ghc-options: *ghc-options-lib
when:
- condition: flag(postgres)
then:
cpp-options: -Dpostgres
other-modules:
- Kupo.App.Database.Postgres
else:
other-modules:
- Kupo.App.Database.SQLite
- condition: flag(production)
ghc-options:
- -Wunused-packages
- -Werror
- -O2
dependencies:
- aeson
- attoparsec-aeson
- base16
- base58-bytestring
- base64
- bech32
- bech32-th
- binary
- bytestring
- cardano-crypto-class
- cardano-crypto-wrapper
- cardano-ledger-allegra
- cardano-ledger-alonzo
- cardano-ledger-api
- cardano-ledger-babbage
- cardano-ledger-binary
- cardano-ledger-byron
- cardano-ledger-conway
- cardano-ledger-core
- cardano-ledger-mary
- cardano-ledger-shelley
- cardano-slotting
- cardano-strict-containers
- cborg
- containers
- contra-tracer
- contra-tracers
- directory
- fast-bech32
- file-embed
- filepath
- generic-lens
- http-client
- http-types
- io-classes
- lens
- lens-aeson
- modern-uri
- network-mux
- optparse-applicative
- ouroboros-consensus
- ouroboros-consensus-cardano
- ouroboros-consensus-diffusion
- ouroboros-network
- ouroboros-network-api
- ouroboros-network-framework
- ouroboros-network-protocols
- prometheus
- relude
- resource-pool
- safe
- safe-exceptions
- scientific
- sqlite-simple
- template-haskell
- text
- text-ansi
- time
- transformers
- typed-protocols
- unix
- wai
- warp
- websockets
- websockets-json
- yaml
tests:
unit:
main: Spec.hs
source-dirs: test
ghc-options: *ghc-options-test
dependencies:
- aeson
- base
- bytestring
- cardano-crypto-class
- containers
- directory
- filepath
- hspec
- http-client
- http-media
- http-types
- io-classes
- io-sim
- kupo
- lens-aeson
- openapi3
- process
- QuickCheck
- quickcheck-state-machine
- si-timers
- sqlite-simple
- stm
- temporary
- transformers
- text
- wai
- wai-extra
- websockets
- yaml
build-tools:
- hspec-discover
executables:
kupo:
main: Main.hs
source-dirs: app
ghc-options: *ghc-options-executable
when:
- condition: flag(production)
ghc-options:
- -O2
- -Wunused-packages
- -Werror
- '"-with-rtsopts=-N -A16m -qb -qg"'
- condition: flag(postgres)
cpp-options: -Dpostgres
dependencies:
- kupo