-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathhnix-store-remote.cabal
227 lines (215 loc) · 5.47 KB
/
hnix-store-remote.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
cabal-version: 2.2
name: hnix-store-remote
version: 0.7.0.0
synopsis: Remote hnix store
description: Implementation of the nix store using the daemon protocol.
homepage: https://github.com/haskell-nix/hnix-store
license: Apache-2.0
license-file: LICENSE
author: Sorki
maintainer: [email protected]
copyright: 2018 Sorki
category: Nix
build-type: Simple
extra-doc-files:
CHANGELOG.md
extra-source-files:
README.md
, README.lhs
common commons
ghc-options: -Wall
default-extensions:
DataKinds
, DefaultSignatures
, DeriveGeneric
, DeriveDataTypeable
, DeriveFunctor
, DeriveFoldable
, DeriveTraversable
, DeriveLift
, DerivingVia
, FlexibleContexts
, FlexibleInstances
, GADTs
, RecordWildCards
, ScopedTypeVariables
, StandaloneDeriving
, TypeApplications
, TypeOperators
, TypeSynonymInstances
, InstanceSigs
, KindSignatures
, MultiParamTypeClasses
, TupleSections
, LambdaCase
, BangPatterns
, ViewPatterns
default-language: Haskell2010
flag io-testsuite
default:
False
description:
Enable testsuite, which requires external
binaries and Linux namespace support.
flag build-derivation
default:
False
description:
Build build-derivation executable
flag build-readme
default:
False
description:
Build README.lhs example
library
import: commons
exposed-modules:
Data.Serializer
, Data.Serializer.Example
, System.Nix.Store.Remote
, System.Nix.Store.Remote.Arbitrary
, System.Nix.Store.Remote.Client
, System.Nix.Store.Remote.Client.Core
, System.Nix.Store.Remote.Logger
, System.Nix.Store.Remote.MonadStore
, System.Nix.Store.Remote.Serializer
, System.Nix.Store.Remote.Server
, System.Nix.Store.Remote.Socket
, System.Nix.Store.Remote.Types
, System.Nix.Store.Remote.Types.Activity
, System.Nix.Store.Remote.Types.CheckMode
, System.Nix.Store.Remote.Types.GC
, System.Nix.Store.Remote.Types.Handshake
, System.Nix.Store.Remote.Types.Logger
, System.Nix.Store.Remote.Types.NoReply
, System.Nix.Store.Remote.Types.ProtoVersion
, System.Nix.Store.Remote.Types.Query
, System.Nix.Store.Remote.Types.Query.Missing
, System.Nix.Store.Remote.Types.StoreConfig
, System.Nix.Store.Remote.Types.StoreRequest
, System.Nix.Store.Remote.Types.StoreReply
, System.Nix.Store.Remote.Types.StoreText
, System.Nix.Store.Remote.Types.SubstituteMode
, System.Nix.Store.Remote.Types.SuccessCodeReply
, System.Nix.Store.Remote.Types.TrustedFlag
, System.Nix.Store.Remote.Types.Verbosity
, System.Nix.Store.Remote.Types.WorkerMagic
, System.Nix.Store.Remote.Types.WorkerOp
build-depends:
base >=4.12 && <5
, hnix-store-core >= 0.8 && <0.9
, hnix-store-json >= 0.1
, hnix-store-nar >= 0.1
, hnix-store-tests >= 0.1
, aeson
, attoparsec
, bytestring
, cereal
, containers
, concurrency
, crypton
, data-default-class
, dependent-sum > 0.7
, dependent-sum-template >= 0.2.0.1 && < 0.3
-- , directory
, dlist >= 1.0
, exceptions
, generic-arbitrary < 1.1
, hashable
, text
, time
, transformers
, network
, mtl
, QuickCheck
, unordered-containers
, unix >= 2.7
, vector
hs-source-dirs: src
ghc-options: -Wall
executable build-derivation
if !flag(build-derivation)
buildable: False
build-depends:
base >=4.12 && <5
, hnix-store-core
, hnix-store-remote
, data-default-class
, text
default-language: Haskell2010
main-is: BuildDerivation.hs
hs-source-dirs: app
ghc-options: -Wall -threaded -rtsopts "-with-rtsopts -N"
executable remote-readme
if !flag(build-readme)
buildable: False
build-depends:
base >=4.12 && <5
, hnix-store-core
, hnix-store-remote
build-tool-depends:
markdown-unlit:markdown-unlit
default-language: Haskell2010
main-is: README.lhs
ghc-options: -pgmL markdown-unlit -Wall
test-suite remote
import: commons
type: exitcode-stdio-1.0
main-is: Driver.hs
hs-source-dirs: tests
ghc-options: -Wall -threaded -rtsopts "-with-rtsopts -N"
other-modules:
Data.SerializerSpec
EnumSpec
NixSerializerSpec
build-tool-depends:
hspec-discover:hspec-discover
build-depends:
base >=4.12 && <5
, hnix-store-core
, hnix-store-remote
, hnix-store-tests
, bytestring
, crypton
, some > 1.0.5 && < 2
, time
, hspec
, QuickCheck
test-suite remote-io
import: commons
if !flag(io-testsuite) || os(darwin)
buildable: False
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: tests-io
-- See https://github.com/redneb/hs-linux-namespaces/issues/3
ghc-options: -rtsopts -fprof-auto "-with-rtsopts -V0"
other-modules:
DataSink
, NixDaemonSpec
, SampleNar
build-depends:
base >=4.12 && <5
, hnix-store-core
, hnix-store-nar
, hnix-store-remote
, hnix-store-tests
, bytestring
, concurrency
, containers
, crypton
, data-default-class
, dependent-sum
, directory
, exceptions
, filepath
, hspec
, hspec-expectations-lifted
, linux-namespaces
, process
, some
, temporary
, text
, time
, unix
, unordered-containers