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
|
2023-12-03 10:36:56 +03:00
|
|
|
, DefaultSignatures
|
2023-11-17 22:11:18 +03:00
|
|
|
, DeriveGeneric
|
2023-11-14 13:00:52 +03:00
|
|
|
, DeriveDataTypeable
|
|
|
|
, DeriveFunctor
|
|
|
|
, DeriveFoldable
|
|
|
|
, DeriveTraversable
|
|
|
|
, DeriveLift
|
2023-11-23 19:03:37 +03:00
|
|
|
, DerivingVia
|
2023-11-14 13:00:52 +03:00
|
|
|
, FlexibleContexts
|
|
|
|
, FlexibleInstances
|
2023-11-25 17:44:15 +03:00
|
|
|
, GADTs
|
2023-11-14 18:39:22 +03:00
|
|
|
, RecordWildCards
|
|
|
|
, ScopedTypeVariables
|
2023-11-14 13:00:52 +03:00
|
|
|
, StandaloneDeriving
|
|
|
|
, TypeApplications
|
2023-12-03 10:36:56 +03:00
|
|
|
, TypeOperators
|
2023-11-14 13:00:52 +03:00
|
|
|
, TypeSynonymInstances
|
|
|
|
, InstanceSigs
|
2023-11-25 17:44:15 +03:00
|
|
|
, KindSignatures
|
2023-11-14 13:00:52 +03:00
|
|
|
, 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-29 07:33:57 +03:00
|
|
|
flag build-derivation
|
|
|
|
default:
|
|
|
|
False
|
|
|
|
description:
|
|
|
|
Build build-derivation executable
|
|
|
|
|
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:
|
2023-11-25 17:44:15 +03:00
|
|
|
Data.Serializer
|
|
|
|
, Data.Serializer.Example
|
|
|
|
, System.Nix.Store.Remote
|
2023-11-23 19:03:37 +03:00
|
|
|
, System.Nix.Store.Remote.Arbitrary
|
2023-11-30 16:43:04 +03:00
|
|
|
, 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-12-02 19:32:13 +03:00
|
|
|
, System.Nix.Store.Remote.Server
|
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
|
2023-11-26 12:21:58 +03:00
|
|
|
, System.Nix.Store.Remote.Types.Activity
|
2023-11-23 17:24:39 +03:00
|
|
|
, System.Nix.Store.Remote.Types.CheckMode
|
2023-11-30 09:09:06 +03:00
|
|
|
, System.Nix.Store.Remote.Types.GC
|
2023-12-02 16:19:22 +03:00
|
|
|
, System.Nix.Store.Remote.Types.Handshake
|
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
|
2023-12-02 16:45:05 +03:00
|
|
|
, System.Nix.Store.Remote.Types.Query
|
|
|
|
, System.Nix.Store.Remote.Types.Query.Missing
|
2023-11-23 16:49:24 +03:00
|
|
|
, System.Nix.Store.Remote.Types.StoreConfig
|
2023-12-01 14:04:23 +03:00
|
|
|
, System.Nix.Store.Remote.Types.StoreRequest
|
2023-12-04 20:36:43 +03:00
|
|
|
, System.Nix.Store.Remote.Types.StoreReply
|
2023-12-01 12:39:00 +03:00
|
|
|
, System.Nix.Store.Remote.Types.StoreText
|
2023-11-23 17:24:39 +03:00
|
|
|
, System.Nix.Store.Remote.Types.SubstituteMode
|
2023-12-02 15:50:21 +03:00
|
|
|
, System.Nix.Store.Remote.Types.TrustedFlag
|
2023-11-23 17:58:19 +03:00
|
|
|
, System.Nix.Store.Remote.Types.Verbosity
|
2023-12-01 09:24:50 +03:00
|
|
|
, System.Nix.Store.Remote.Types.WorkerMagic
|
2023-11-23 16:33:51 +03:00
|
|
|
, System.Nix.Store.Remote.Types.WorkerOp
|
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
|
2023-11-19 23:27:48 +03:00
|
|
|
, hnix-store-core >= 0.8 && <0.9
|
2023-12-06 18:24:57 +03:00
|
|
|
, hnix-store-json >= 0.1
|
2023-11-22 12:44:11 +03:00
|
|
|
, hnix-store-nar >= 0.1
|
2023-12-01 12:11:18 +03:00
|
|
|
, hnix-store-tests >= 0.1
|
2023-12-06 18:24:57 +03:00
|
|
|
, aeson
|
2021-03-16 11:57:38 +03:00
|
|
|
, attoparsec
|
|
|
|
, bytestring
|
2023-11-15 11:46:48 +03:00
|
|
|
, cereal
|
2021-03-16 11:57:38 +03:00
|
|
|
, containers
|
2023-12-02 19:32:13 +03:00
|
|
|
, concurrency
|
2023-11-23 21:22:19 +03:00
|
|
|
, crypton
|
2023-11-16 15:25:20 +03:00
|
|
|
, data-default-class
|
2023-12-01 17:18:04 +03:00
|
|
|
, dependent-sum > 0.7
|
2023-12-01 12:11:18 +03:00
|
|
|
, dependent-sum-template > 0.1.1 && < 0.3
|
2023-12-03 18:51:55 +03:00
|
|
|
, dlist >= 1.0
|
2023-11-23 19:03:37 +03:00
|
|
|
, generic-arbitrary < 1.1
|
2023-11-25 22:38:22 +03:00
|
|
|
, 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
|
2023-11-23 19:03:37 +03:00
|
|
|
, QuickCheck
|
2021-03-16 11:57:38 +03:00
|
|
|
, unordered-containers
|
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-29 07:33:57 +03:00
|
|
|
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"
|
|
|
|
|
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
|
2023-11-23 19:57:44 +03:00
|
|
|
ghc-options: -Wall -threaded -rtsopts "-with-rtsopts -N"
|
2023-11-15 11:46:48 +03:00
|
|
|
other-modules:
|
2023-11-25 17:44:15 +03:00
|
|
|
Data.SerializerSpec
|
2023-11-26 09:15:28 +03:00
|
|
|
NixSerializerSpec
|
2023-11-15 11:46:48 +03:00
|
|
|
SerializeSpec
|
2023-11-19 23:29:26 +03:00
|
|
|
build-tool-depends:
|
|
|
|
hspec-discover:hspec-discover
|
2023-11-15 11:46:48 +03:00
|
|
|
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-19 20:01:55 +03:00
|
|
|
, hnix-store-tests
|
2023-11-15 11:46:48 +03:00
|
|
|
, cereal
|
2023-11-30 08:09:03 +03:00
|
|
|
, crypton
|
2023-11-25 17:44:15 +03:00
|
|
|
, some > 1.0.5 && < 2
|
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-19 23:29:26 +03:00
|
|
|
, QuickCheck
|
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
|
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:
|
2023-11-17 22:01:15 +03:00
|
|
|
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
|
2023-11-15 18:01:17 +03:00
|
|
|
, bytestring
|
2021-03-16 11:57:38 +03:00
|
|
|
, containers
|
2023-11-23 21:22:19 +03:00
|
|
|
, 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
|