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

164 lines
3.5 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
, FlexibleContexts
, FlexibleInstances
, RecordWildCards
, ScopedTypeVariables
, StandaloneDeriving
, TypeApplications
, TypeSynonymInstances
, InstanceSigs
, 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-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:
System.Nix.Store.Remote
, System.Nix.Store.Remote.Binary
, System.Nix.Store.Remote.Serialize
, System.Nix.Store.Remote.Serialize.Prim
2021-03-16 11:57:38 +03:00
, System.Nix.Store.Remote.Logger
, System.Nix.Store.Remote.Protocol
, System.Nix.Store.Remote.Types
, System.Nix.Store.Remote.Util
2018-07-16 10:12:23 +03:00
2021-03-16 11:57:38 +03:00
build-depends:
base >=4.12 && <5
2021-03-16 11:57:38 +03:00
, attoparsec
, binary
, bytestring
, cereal
2021-03-16 11:57:38 +03:00
, containers
, cryptonite
2023-11-16 15:25:20 +03:00
, data-default-class
2021-03-16 11:57:38 +03:00
, text
, time
, network
, nix-derivation >= 1.1.1 && <2
, mtl
, unordered-containers
, hnix-store-core >= 0.7 && <0.8
2023-06-16 05:28:29 +03:00
, transformers
, vector
2018-07-16 10:12:23 +03:00
hs-source-dirs: src
ghc-options: -Wall
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
ghc-options: -Wall
other-modules:
SerializeSpec
build-depends:
base >=4.12 && <5
, hnix-store-core
, hnix-store-remote
, nix-derivation
, bytestring
, cereal
, text
, time
, hspec
, tasty
, tasty-hspec
, tasty-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
build-depends:
base >=4.12 && <5
, hnix-store-core
2021-03-16 11:57:38 +03:00
, hnix-store-remote
, bytestring
2021-03-16 11:57:38 +03:00
, containers
, cryptonite
2021-03-16 11:57:38 +03:00
, directory
, process
, filepath
, hspec-expectations-lifted
, text
2021-03-16 11:57:38 +03:00
, tasty
, hspec
2021-03-16 11:57:38 +03:00
, tasty-hspec
, linux-namespaces
, temporary
, unix
, unordered-containers