@@ -26,14 +26,17 @@ common commons
2626 , DeriveFoldable
2727 , DeriveTraversable
2828 , DeriveLift
29+ , DerivingVia
2930 , FlexibleContexts
3031 , FlexibleInstances
32+ , GADTs
3133 , RecordWildCards
3234 , ScopedTypeVariables
3335 , StandaloneDeriving
3436 , TypeApplications
3537 , TypeSynonymInstances
3638 , InstanceSigs
39+ , KindSignatures
3740 , MultiParamTypeClasses
3841 , TupleSections
3942 , LambdaCase
@@ -53,6 +56,12 @@ flag io-testsuite
5356 Enable testsuite, which requires external
5457 binaries and Linux namespace support.
5558
59+ flag build-derivation
60+ default :
61+ False
62+ description :
63+ Build build-derivation executable
64+
5665flag build-readme
5766 default :
5867 False
@@ -62,37 +71,68 @@ flag build-readme
6271library
6372 import : commons
6473 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
6978 , System.Nix.Store.Remote.Logger
79+ , System.Nix.Store.Remote.MonadStore
7080 , 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
7185 , 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
7395
7496 build-depends :
7597 base >= 4.12 && < 5
7698 , hnix-store-core >= 0.8 && < 0.9
7799 , hnix-store-nar >= 0.1
78100 , attoparsec
79- , binary
80101 , bytestring
81102 , cereal
82103 , containers
83104 , crypton
84105 , data-default-class
85106 , dependent-sum > 0.7 && < 1
107+ , generic-arbitrary < 1.1
108+ , hashable
86109 , text
87110 , time
111+ , transformers
88112 , network
89113 , mtl
114+ , QuickCheck
115+ , quickcheck-instances
90116 , unordered-containers
91- , transformers
92117 , vector
93118 hs-source-dirs : src
94119 ghc-options : -Wall
95120
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+
96136executable remote-readme
97137 if !flag(build-readme)
98138 buildable : False
@@ -110,8 +150,10 @@ test-suite remote
110150 type : exitcode-stdio-1.0
111151 main-is : Driver.hs
112152 hs-source-dirs : tests
113- ghc-options : -Wall
153+ ghc-options : -Wall -threaded -rtsopts "-with-rtsopts -N"
114154 other-modules :
155+ Data.SerializerSpec
156+ NixSerializerSpec
115157 SerializeSpec
116158 build-tool-depends :
117159 hspec-discover :hspec-discover
@@ -121,6 +163,9 @@ test-suite remote
121163 , hnix-store-remote
122164 , hnix-store-tests
123165 , cereal
166+ , crypton
167+ , dependent-sum > 0.7 && < 1
168+ , some > 1.0.5 && < 2
124169 , text
125170 , time
126171 , hspec
@@ -153,14 +198,14 @@ test-suite remote-io
153198 , containers
154199 , crypton
155200 , directory
156- , process
157201 , filepath
202+ , hspec
158203 , hspec-expectations-lifted
159- , text
204+ , linux-namespaces
205+ , process
160206 , tasty
161- , hspec
162207 , tasty-hspec
163- , linux-namespaces
164208 , temporary
209+ , text
165210 , unix
166211 , unordered-containers
0 commit comments