2021-01-06 13:52:01 +03:00
|
|
|
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
|
2020-05-01 13:59:59 +03:00
|
|
|
category: Nix
|
2018-07-16 10:12:23 +03:00
|
|
|
build-type: Simple
|
2023-11-15 10:42:56 +03:00
|
|
|
extra-source-files:
|
|
|
|
CHANGELOG.md
|
|
|
|
, README.md
|
|
|
|
, README.lhs
|
2021-01-06 13:52:01 +03:00
|
|
|
|
2023-11-14 18:39:22 +03:00
|
|
|
common commons
|
2023-11-17 22:12:11 +03:00
|
|
|
ghc-options: -Wall
|
2023-11-14 13:00:52 +03:00
|
|
|
default-extensions:
|
2023-11-17 22:11:18 +03:00
|
|
|
DataKinds
|
|
|
|
, DeriveGeneric
|
2023-11-14 13:00:52 +03:00
|
|
|
, DeriveDataTypeable
|
|
|
|
, DeriveFunctor
|
|
|
|
, DeriveFoldable
|
|
|
|
, DeriveTraversable
|
|
|
|
, DeriveLift
|
|
|
|
, FlexibleContexts
|
|
|
|
, FlexibleInstances
|
2023-11-14 18:39:22 +03:00
|
|
|
, RecordWildCards
|
|
|
|
, ScopedTypeVariables
|
2023-11-14 13:00:52 +03:00
|
|
|
, StandaloneDeriving
|
|
|
|
, TypeApplications
|
|
|
|
, TypeSynonymInstances
|
|
|
|
, InstanceSigs
|
|
|
|
, MultiParamTypeClasses
|
|
|
|
, TupleSections
|
|
|
|
, LambdaCase
|
|
|
|
, BangPatterns
|
|
|
|
, ViewPatterns
|
2023-11-15 11:46:48 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
|
|
common tests
|
|
|
|
import: commons
|
|
|
|
build-tool-depends:
|
|
|
|
tasty-discover:tasty-discover
|
2018-07-16 10:12:23 +03:00
|
|
|
|
2020-07-14 14:20:04 +03:00
|
|
|
flag io-testsuite
|
|
|
|
default:
|
|
|
|
False
|
|
|
|
description:
|
|
|
|
Enable testsuite, which requires external
|
|
|
|
binaries and Linux namespace support.
|
|
|
|
|
2023-11-14 11:42:22 +03:00
|
|
|
flag build-readme
|
|
|
|
default:
|
2023-11-17 11:57:11 +03:00
|
|
|
False
|
2023-11-14 11:42:22 +03:00
|
|
|
description:
|
|
|
|
Build README.lhs example
|
|
|
|
|
2018-07-16 10:12:23 +03:00
|
|
|
library
|
2021-01-06 13:52:01 +03:00
|
|
|
import: commons
|
2021-03-16 11:57:38 +03:00
|
|
|
exposed-modules:
|
|
|
|
System.Nix.Store.Remote
|
|
|
|
, System.Nix.Store.Remote.Binary
|
2023-11-15 11:46:48 +03:00
|
|
|
, 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:
|
2023-11-17 22:01:15 +03:00
|
|
|
base >=4.12 && <5
|
2021-03-16 11:57:38 +03:00
|
|
|
, attoparsec
|
|
|
|
, binary
|
|
|
|
, bytestring
|
2023-11-15 11:46:48 +03:00
|
|
|
, cereal
|
2021-03-16 11:57:38 +03:00
|
|
|
, containers
|
2021-06-10 21:09:11 +03:00
|
|
|
, 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
|
2023-11-14 11:21:45 +03:00
|
|
|
, hnix-store-core >= 0.7 && <0.8
|
2023-06-16 05:28:29 +03:00
|
|
|
, transformers
|
2023-11-15 20:36:25 +03:00
|
|
|
, vector
|
2018-07-16 10:12:23 +03:00
|
|
|
hs-source-dirs: src
|
|
|
|
ghc-options: -Wall
|
2020-05-29 15:40:53 +03:00
|
|
|
|
2023-11-14 11:42:22 +03:00
|
|
|
executable remote-readme
|
2023-11-17 11:57:11 +03:00
|
|
|
if !flag(build-readme)
|
|
|
|
buildable: False
|
2023-11-14 11:42:22 +03:00
|
|
|
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
|
|
|
|
|
2023-11-15 11:46:48 +03:00
|
|
|
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:
|
2023-11-17 22:01:15 +03:00
|
|
|
base >=4.12 && <5
|
|
|
|
, hnix-store-core
|
2023-11-15 11:46:48 +03:00
|
|
|
, hnix-store-remote
|
2023-11-15 20:36:25 +03:00
|
|
|
, nix-derivation
|
2023-11-15 18:01:17 +03:00
|
|
|
, bytestring
|
2023-11-15 11:46:48 +03:00
|
|
|
, cereal
|
2023-11-15 18:01:17 +03:00
|
|
|
, text
|
2023-11-15 11:46:48 +03:00
|
|
|
, time
|
2023-11-15 18:01:17 +03:00
|
|
|
, hspec
|
2023-11-15 11:46:48 +03:00
|
|
|
, tasty
|
2023-11-15 18:01:17 +03:00
|
|
|
, tasty-hspec
|
2023-11-15 11:46:48 +03:00
|
|
|
, tasty-quickcheck
|
|
|
|
, quickcheck-instances
|
2023-11-15 18:01:17 +03:00
|
|
|
, unordered-containers
|
2023-11-15 11:46:48 +03:00
|
|
|
|
2023-11-14 18:38:19 +03:00
|
|
|
test-suite remote-io
|
2023-11-15 11:46:48 +03:00
|
|
|
import: tests
|
2021-01-06 13:52:01 +03:00
|
|
|
|
2023-11-11 19:09:47 +03:00
|
|
|
if !flag(io-testsuite) || os(darwin)
|
2021-01-06 13:51:12 +03:00
|
|
|
buildable: False
|
2020-07-14 14:20:04 +03:00
|
|
|
|
2021-01-06 13:51:12 +03:00
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: Driver.hs
|
2023-11-15 11:46:48 +03:00
|
|
|
hs-source-dirs: tests-io
|
2023-11-12 15:54:25 +03:00
|
|
|
-- 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:
|
2022-03-07 14:42:05 +03:00
|
|
|
NixDaemon
|
2021-03-16 11:57:38 +03:00
|
|
|
, Spec
|
|
|
|
build-depends:
|
2023-11-17 22:01:15 +03:00
|
|
|
base >=4.12 && <5
|
|
|
|
, hnix-store-core
|
2021-03-16 11:57:38 +03:00
|
|
|
, hnix-store-remote
|
2023-11-15 18:01:17 +03:00
|
|
|
, bytestring
|
2021-03-16 11:57:38 +03:00
|
|
|
, containers
|
2021-06-10 21:09:11 +03:00
|
|
|
, cryptonite
|
2021-03-16 11:57:38 +03:00
|
|
|
, directory
|
|
|
|
, process
|
|
|
|
, filepath
|
|
|
|
, hspec-expectations-lifted
|
2023-11-15 18:01:17 +03:00
|
|
|
, text
|
2021-03-16 11:57:38 +03:00
|
|
|
, tasty
|
2021-05-30 20:57:29 +03:00
|
|
|
, hspec
|
2021-03-16 11:57:38 +03:00
|
|
|
, tasty-hspec
|
|
|
|
, linux-namespaces
|
|
|
|
, temporary
|
|
|
|
, unix
|
|
|
|
, unordered-containers
|