2021-01-06 13:52:01 +03:00
|
|
|
cabal-version: 2.2
|
2018-04-26 18:17:03 +03:00
|
|
|
name: hnix-store-core
|
2021-03-12 20:38:54 +03:00
|
|
|
version: 0.4.2.0
|
2018-04-26 18:17:03 +03:00
|
|
|
synopsis: Core effects for interacting with the Nix store.
|
|
|
|
description:
|
|
|
|
This package contains types and functions needed to describe
|
|
|
|
interactions with the Nix store abstracted away from
|
|
|
|
specific effectful context.
|
|
|
|
homepage: https://github.com/haskell-nix/hnix-store
|
|
|
|
license: Apache-2.0
|
|
|
|
license-file: LICENSE
|
|
|
|
author: Shea Levy
|
|
|
|
maintainer: shea@shealevy.com
|
|
|
|
copyright: 2018 Shea Levy
|
2020-05-01 13:59:59 +03:00
|
|
|
category: Nix
|
2018-04-26 18:17:03 +03:00
|
|
|
build-type: Simple
|
2020-12-08 21:19:49 +03:00
|
|
|
extra-source-files: ChangeLog.md
|
|
|
|
, README.md
|
|
|
|
, tests/samples/example0.drv
|
|
|
|
, tests/samples/example1.drv
|
2021-01-06 13:52:01 +03:00
|
|
|
|
|
|
|
Common commons
|
|
|
|
if impl(ghc >= 8.10)
|
|
|
|
ghc-options: -Wall -Wunused-packages
|
|
|
|
else
|
|
|
|
ghc-options: -Wall
|
2018-04-26 18:17:03 +03:00
|
|
|
|
|
|
|
library
|
2021-01-06 13:52:01 +03:00
|
|
|
import: commons
|
2019-03-11 09:42:50 +03:00
|
|
|
exposed-modules: System.Nix.Base32
|
2020-05-29 15:40:53 +03:00
|
|
|
, System.Nix.Build
|
2020-05-19 12:09:25 +03:00
|
|
|
, System.Nix.Derivation
|
2018-09-17 03:29:53 +03:00
|
|
|
, System.Nix.Hash
|
2020-03-04 12:41:04 +03:00
|
|
|
, System.Nix.Internal.Base32
|
2018-10-22 06:14:21 +03:00
|
|
|
, System.Nix.Internal.Hash
|
2020-03-22 21:06:16 +03:00
|
|
|
, System.Nix.Internal.Nar.Parser
|
|
|
|
, System.Nix.Internal.Nar.Streamer
|
|
|
|
, System.Nix.Internal.Nar.Effects
|
2019-03-27 19:04:56 +03:00
|
|
|
, System.Nix.Internal.Signature
|
2019-03-21 07:01:40 +03:00
|
|
|
, System.Nix.Internal.StorePath
|
2018-04-30 13:01:14 +03:00
|
|
|
, System.Nix.Nar
|
2019-03-10 06:42:23 +03:00
|
|
|
, System.Nix.ReadonlyStore
|
2019-03-27 19:04:56 +03:00
|
|
|
, System.Nix.Signature
|
2019-03-21 07:01:40 +03:00
|
|
|
, System.Nix.StorePath
|
2019-03-27 19:04:56 +03:00
|
|
|
, System.Nix.StorePathMetadata
|
2019-03-19 00:20:31 +03:00
|
|
|
build-depends: base >=4.10 && <5
|
2020-05-29 15:40:53 +03:00
|
|
|
, attoparsec
|
2020-03-22 21:06:16 +03:00
|
|
|
, algebraic-graphs >= 0.5 && < 0.6
|
2020-12-30 02:54:31 +03:00
|
|
|
, base16-bytestring
|
2020-11-04 00:36:58 +03:00
|
|
|
, base64-bytestring
|
2018-05-01 11:46:56 +03:00
|
|
|
, bytestring
|
2020-03-22 21:06:16 +03:00
|
|
|
, cereal
|
2018-05-01 11:46:56 +03:00
|
|
|
, containers
|
2018-10-22 06:14:21 +03:00
|
|
|
, cryptohash-md5
|
|
|
|
, cryptohash-sha1
|
|
|
|
, cryptohash-sha256
|
2020-11-04 00:36:58 +03:00
|
|
|
, cryptohash-sha512
|
2018-05-01 11:46:56 +03:00
|
|
|
, directory
|
|
|
|
, filepath
|
|
|
|
, hashable
|
2020-03-22 21:06:16 +03:00
|
|
|
, lifted-base
|
|
|
|
, monad-control
|
2018-05-01 11:46:56 +03:00
|
|
|
, mtl
|
2020-05-19 12:09:25 +03:00
|
|
|
, nix-derivation >= 1.1.1 && <2
|
2019-03-27 19:04:56 +03:00
|
|
|
, saltine
|
|
|
|
, time
|
2018-05-01 11:46:56 +03:00
|
|
|
, text
|
|
|
|
, unix
|
|
|
|
, unordered-containers
|
2018-10-22 06:14:21 +03:00
|
|
|
, vector
|
2018-04-26 18:17:03 +03:00
|
|
|
hs-source-dirs: src
|
|
|
|
default-language: Haskell2010
|
2018-05-01 11:46:56 +03:00
|
|
|
|
2018-09-12 06:09:00 +03:00
|
|
|
Flag bounded_memory
|
2021-01-06 13:51:12 +03:00
|
|
|
description: Run tests of constant memory use (requires +RTS -T)
|
|
|
|
default: False
|
2018-09-12 06:09:00 +03:00
|
|
|
|
2018-05-01 11:46:56 +03:00
|
|
|
test-suite format-tests
|
2021-01-06 13:52:01 +03:00
|
|
|
import: commons
|
2021-01-06 13:51:12 +03:00
|
|
|
if flag(bounded_memory)
|
|
|
|
cpp-options: -DBOUNDED_MEMORY
|
|
|
|
ghc-options: -rtsopts -fprof-auto
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: Driver.hs
|
|
|
|
other-modules:
|
|
|
|
Arbitrary
|
|
|
|
Derivation
|
|
|
|
NarFormat
|
|
|
|
Hash
|
|
|
|
StorePath
|
|
|
|
hs-source-dirs:
|
|
|
|
tests
|
2021-01-19 14:08:32 +03:00
|
|
|
build-tool-depends:
|
|
|
|
tasty-discover:tasty-discover
|
2021-01-06 13:51:12 +03:00
|
|
|
build-depends:
|
|
|
|
hnix-store-core
|
|
|
|
, attoparsec
|
|
|
|
, base
|
|
|
|
, base16-bytestring
|
|
|
|
, base64-bytestring
|
|
|
|
, binary
|
|
|
|
, bytestring
|
|
|
|
, containers
|
|
|
|
, directory
|
|
|
|
, filepath
|
|
|
|
, process
|
|
|
|
, tasty
|
|
|
|
, tasty-golden
|
|
|
|
, tasty-hspec
|
|
|
|
, tasty-hunit
|
|
|
|
, tasty-quickcheck
|
|
|
|
, temporary
|
|
|
|
, text
|
|
|
|
, unix
|
|
|
|
default-language: Haskell2010
|