@@ -26,14 +26,17 @@ common commons
26
26
, DeriveFoldable
27
27
, DeriveTraversable
28
28
, DeriveLift
29
+ , DerivingVia
29
30
, FlexibleContexts
30
31
, FlexibleInstances
32
+ , GADTs
31
33
, RecordWildCards
32
34
, ScopedTypeVariables
33
35
, StandaloneDeriving
34
36
, TypeApplications
35
37
, TypeSynonymInstances
36
38
, InstanceSigs
39
+ , KindSignatures
37
40
, MultiParamTypeClasses
38
41
, TupleSections
39
42
, LambdaCase
@@ -53,6 +56,12 @@ flag io-testsuite
53
56
Enable testsuite, which requires external
54
57
binaries and Linux namespace support.
55
58
59
+ flag build-derivation
60
+ default :
61
+ False
62
+ description :
63
+ Build build-derivation executable
64
+
56
65
flag build-readme
57
66
default :
58
67
False
@@ -62,37 +71,68 @@ flag build-readme
62
71
library
63
72
import : commons
64
73
exposed-modules :
65
- System.Nix.Store.Remote
66
- , System.Nix.Store.Remote.Binary
67
- , System.Nix.Store.Remote.Serialize
68
- , System.Nix.Store.Remote.Serialize.Prim
74
+ Data.Serializer
75
+ , Data.Serializer.Example
76
+ , System.Nix.Store.Remote
77
+ , System.Nix.Store.Remote.Arbitrary
69
78
, System.Nix.Store.Remote.Logger
79
+ , System.Nix.Store.Remote.MonadStore
70
80
, System.Nix.Store.Remote.Protocol
81
+ , System.Nix.Store.Remote.Serialize
82
+ , System.Nix.Store.Remote.Serialize.Prim
83
+ , System.Nix.Store.Remote.Serializer
84
+ , System.Nix.Store.Remote.Socket
71
85
, System.Nix.Store.Remote.Types
72
- , System.Nix.Store.Remote.Util
86
+ , System.Nix.Store.Remote.Types.Activity
87
+ , System.Nix.Store.Remote.Types.CheckMode
88
+ , System.Nix.Store.Remote.Types.GC
89
+ , System.Nix.Store.Remote.Types.Logger
90
+ , System.Nix.Store.Remote.Types.ProtoVersion
91
+ , System.Nix.Store.Remote.Types.StoreConfig
92
+ , System.Nix.Store.Remote.Types.SubstituteMode
93
+ , System.Nix.Store.Remote.Types.Verbosity
94
+ , System.Nix.Store.Remote.Types.WorkerOp
73
95
74
96
build-depends :
75
97
base >= 4.12 && < 5
76
98
, hnix-store-core >= 0.8 && < 0.9
77
99
, hnix-store-nar >= 0.1
78
100
, attoparsec
79
- , binary
80
101
, bytestring
81
102
, cereal
82
103
, containers
83
104
, crypton
84
105
, data-default-class
85
106
, dependent-sum > 0.7 && < 1
107
+ , generic-arbitrary < 1.1
108
+ , hashable
86
109
, text
87
110
, time
111
+ , transformers
88
112
, network
89
113
, mtl
114
+ , QuickCheck
115
+ , quickcheck-instances
90
116
, unordered-containers
91
- , transformers
92
117
, vector
93
118
hs-source-dirs : src
94
119
ghc-options : -Wall
95
120
121
+ executable build-derivation
122
+ if !flag(build-derivation)
123
+ buildable : False
124
+ build-depends :
125
+ base >= 4.12 && < 5
126
+ , attoparsec
127
+ , hnix-store-core
128
+ , hnix-store-remote
129
+ , data-default-class
130
+ , text
131
+ default-language : Haskell2010
132
+ main-is : BuildDerivation.hs
133
+ hs-source-dirs : app
134
+ ghc-options : -Wall -threaded -rtsopts "-with-rtsopts -N"
135
+
96
136
executable remote-readme
97
137
if !flag(build-readme)
98
138
buildable : False
@@ -110,8 +150,10 @@ test-suite remote
110
150
type : exitcode-stdio-1.0
111
151
main-is : Driver.hs
112
152
hs-source-dirs : tests
113
- ghc-options : -Wall
153
+ ghc-options : -Wall -threaded -rtsopts "-with-rtsopts -N"
114
154
other-modules :
155
+ Data.SerializerSpec
156
+ NixSerializerSpec
115
157
SerializeSpec
116
158
build-tool-depends :
117
159
hspec-discover :hspec-discover
@@ -121,6 +163,9 @@ test-suite remote
121
163
, hnix-store-remote
122
164
, hnix-store-tests
123
165
, cereal
166
+ , crypton
167
+ , dependent-sum > 0.7 && < 1
168
+ , some > 1.0.5 && < 2
124
169
, text
125
170
, time
126
171
, hspec
@@ -153,14 +198,14 @@ test-suite remote-io
153
198
, containers
154
199
, crypton
155
200
, directory
156
- , process
157
201
, filepath
202
+ , hspec
158
203
, hspec-expectations-lifted
159
- , text
204
+ , linux-namespaces
205
+ , process
160
206
, tasty
161
- , hspec
162
207
, tasty-hspec
163
- , linux-namespaces
164
208
, temporary
209
+ , text
165
210
, unix
166
211
, unordered-containers
0 commit comments