hnix-store/hnix-store-remote/hnix-store-remote.cabal

212 lines
4.9 KiB
Plaintext
Raw Normal View History

cabal-version: 2.2
2018-07-16 10:12:23 +03:00
name: hnix-store-remote
2022-06-06 12:26:09 +03:00
version: 0.6.0.0
2018-07-16 10:12:23 +03:00
synopsis: Remote hnix store
2019-03-19 00:20:31 +03:00
description: Implementation of the nix store using the daemon protocol.
2018-07-16 10:12:23 +03:00
homepage: https://github.com/haskell-nix/hnix-store
license: Apache-2.0
license-file: LICENSE
author: Richard Marko
maintainer: srk@48.io
copyright: 2018 Richard Marko
category: Nix
2018-07-16 10:12:23 +03:00
build-type: Simple
extra-source-files:
CHANGELOG.md
, README.md
, README.lhs
common commons
ghc-options: -Wall
default-extensions:
2023-11-17 22:11:18 +03:00
DataKinds
, DeriveGeneric
, DeriveDataTypeable
, DeriveFunctor
, DeriveFoldable
, DeriveTraversable
, DeriveLift
, DerivingVia
, FlexibleContexts
, FlexibleInstances
, GADTs
, RecordWildCards
, ScopedTypeVariables
, StandaloneDeriving
, TypeApplications
, TypeSynonymInstances
, InstanceSigs
, KindSignatures
, MultiParamTypeClasses
, TupleSections
, LambdaCase
, BangPatterns
, ViewPatterns
default-language: Haskell2010
common tests
import: commons
build-tool-depends:
tasty-discover:tasty-discover
2018-07-16 10:12:23 +03:00
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
2018-07-16 10:12:23 +03:00
library
import: commons
2021-03-16 11:57:38 +03:00
exposed-modules:
Data.Serializer
, Data.Serializer.Example
, System.Nix.Store.Remote
, System.Nix.Store.Remote.Arbitrary
, System.Nix.Store.Remote.Client
2021-03-16 11:57:38 +03:00
, System.Nix.Store.Remote.Logger
2023-11-23 17:53:09 +03:00
, System.Nix.Store.Remote.MonadStore
2023-11-30 09:09:06 +03:00
, System.Nix.Store.Remote.Serialize
, System.Nix.Store.Remote.Serialize.Prim
, System.Nix.Store.Remote.Serializer
2023-11-23 17:11:52 +03:00
, System.Nix.Store.Remote.Socket
2021-03-16 11:57:38 +03:00
, System.Nix.Store.Remote.Types
, System.Nix.Store.Remote.Types.Activity
, System.Nix.Store.Remote.Types.CheckMode
2023-11-30 09:09:06 +03:00
, System.Nix.Store.Remote.Types.GC
2023-11-23 17:31:52 +03:00
, System.Nix.Store.Remote.Types.Logger
2023-11-22 16:33:09 +03:00
, System.Nix.Store.Remote.Types.ProtoVersion
, System.Nix.Store.Remote.Types.StoreConfig
, System.Nix.Store.Remote.Types.SubstituteMode
2023-11-23 17:58:19 +03:00
, System.Nix.Store.Remote.Types.Verbosity
, System.Nix.Store.Remote.Types.WorkerOp
2018-07-16 10:12:23 +03:00
2021-03-16 11:57:38 +03:00
build-depends:
base >=4.12 && <5
, hnix-store-core >= 0.8 && <0.9
2023-11-22 12:44:11 +03:00
, hnix-store-nar >= 0.1
2021-03-16 11:57:38 +03:00
, attoparsec
, bytestring
, cereal
2021-03-16 11:57:38 +03:00
, containers
, crypton
2023-11-16 15:25:20 +03:00
, data-default-class
, dependent-sum > 0.7 && < 1
, generic-arbitrary < 1.1
, hashable
2021-03-16 11:57:38 +03:00
, text
, time
2023-11-22 16:16:06 +03:00
, transformers
2021-03-16 11:57:38 +03:00
, network
, mtl
, QuickCheck
, quickcheck-instances
2021-03-16 11:57:38 +03:00
, unordered-containers
, vector
2018-07-16 10:12:23 +03:00
hs-source-dirs: src
ghc-options: -Wall
executable build-derivation
if !flag(build-derivation)
buildable: False
build-depends:
base >=4.12 && <5
, attoparsec
, 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-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: tests
type: exitcode-stdio-1.0
main-is: Driver.hs
hs-source-dirs: tests
2023-11-23 19:57:44 +03:00
ghc-options: -Wall -threaded -rtsopts "-with-rtsopts -N"
other-modules:
Data.SerializerSpec
2023-11-26 09:15:28 +03:00
NixSerializerSpec
SerializeSpec
2023-11-19 23:29:26 +03:00
build-tool-depends:
hspec-discover:hspec-discover
build-depends:
base >=4.12 && <5
, hnix-store-core
, hnix-store-remote
, hnix-store-tests
, cereal
, crypton
, dependent-sum > 0.7 && < 1
, some > 1.0.5 && < 2
, text
, time
, hspec
2023-11-19 23:29:26 +03:00
, QuickCheck
, quickcheck-instances
, unordered-containers
test-suite remote-io
import: tests
if !flag(io-testsuite) || os(darwin)
2021-01-06 13:51:12 +03:00
buildable: False
2021-01-06 13:51:12 +03:00
type: exitcode-stdio-1.0
main-is: Driver.hs
hs-source-dirs: tests-io
-- See https://github.com/redneb/hs-linux-namespaces/issues/3
ghc-options: -rtsopts -fprof-auto "-with-rtsopts -V0"
2021-03-16 11:57:38 +03:00
other-modules:
NixDaemon
2021-03-16 11:57:38 +03:00
, Spec
2023-11-19 23:29:26 +03:00
build-tool-depends:
tasty-discover:tasty-discover
2021-03-16 11:57:38 +03:00
build-depends:
base >=4.12 && <5
, hnix-store-core
2023-11-22 12:44:11 +03:00
, hnix-store-nar
2021-03-16 11:57:38 +03:00
, hnix-store-remote
, bytestring
2021-03-16 11:57:38 +03:00
, containers
, crypton
2021-03-16 11:57:38 +03:00
, directory
, filepath
2023-11-22 16:16:06 +03:00
, hspec
2021-03-16 11:57:38 +03:00
, hspec-expectations-lifted
2023-11-22 16:16:06 +03:00
, linux-namespaces
, process
2021-03-16 11:57:38 +03:00
, tasty
, tasty-hspec
, temporary
2023-11-22 16:16:06 +03:00
, text
2021-03-16 11:57:38 +03:00
, unix
, unordered-containers