hnix-store/hnix-store-core/hnix-store-core.cabal
2023-11-17 19:59:34 +01:00

153 lines
3.4 KiB
Plaintext

cabal-version: 2.2
name: hnix-store-core
version: 0.7.0.0
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
category: Nix
build-type: Simple
extra-source-files:
CHANGELOG.md
, README.md
, tests/samples/example0.drv
, tests/samples/example1.drv
, tests/fixtures/case-conflict.nar
common commons
ghc-options: -Wall
default-extensions:
ConstraintKinds
, DataKinds
, DeriveGeneric
, DeriveDataTypeable
, DeriveFunctor
, DeriveFoldable
, DeriveTraversable
, DeriveLift
, DerivingStrategies
, DerivingVia
, ExistentialQuantification
, FlexibleContexts
, FlexibleInstances
, StandaloneDeriving
, ScopedTypeVariables
, StandaloneDeriving
, RecordWildCards
, TypeApplications
, TypeFamilies
, TypeOperators
, TypeSynonymInstances
, InstanceSigs
, KindSignatures
, MultiParamTypeClasses
, TupleSections
, LambdaCase
, BangPatterns
, ViewPatterns
library
import: commons
exposed-modules:
System.Nix.Base
, System.Nix.Base32
, System.Nix.Build
, System.Nix.Derivation
, System.Nix.Hash
, System.Nix.Hash.Truncation
, System.Nix.Nar
, System.Nix.Nar.Parser
, System.Nix.Nar.Streamer
, System.Nix.Nar.Effects
, System.Nix.Nar.Options
, System.Nix.ReadonlyStore
, System.Nix.Signature
, System.Nix.StorePath
, System.Nix.StorePathMetadata
build-depends:
base >=4.12 && <5
, attoparsec
, algebraic-graphs >= 0.5 && < 0.8
, base16-bytestring
, base64-bytestring
, bytestring
, case-insensitive
, cereal
, containers
, data-default-class
, generic-arbitrary < 1.1
-- Required for cryptonite low-level type convertion
, memory
, cryptonite
, directory
, filepath
, hashable
, lifted-base
, monad-control
, mtl
, nix-derivation >= 1.1.1 && <2
, QuickCheck
, quickcheck-instances
, saltine
, time
, text
, unix
, unordered-containers
, vector
hs-source-dirs: src
default-language: Haskell2010
Flag bounded_memory
description: Run tests of constant memory use (requires +RTS -T)
default: False
test-suite format-tests
import: commons
if flag(bounded_memory)
cpp-options: -DBOUNDED_MEMORY
ghc-options: -rtsopts -fprof-auto
type: exitcode-stdio-1.0
main-is: Driver.hs
other-modules:
Derivation
ContentAddressableAddress
NarFormat
Hash
StorePath
hs-source-dirs:
tests
build-tool-depends:
tasty-discover:tasty-discover
build-depends:
hnix-store-core
, attoparsec
, base
, base16-bytestring
, base64-bytestring
, binary
, bytestring
, containers
, cryptonite
, data-default-class
, directory
, filepath
, process
, nix-derivation >= 1.1.1 && <2
, tasty
, tasty-golden
, hspec
, tasty-hspec
, tasty-hunit
, tasty-quickcheck
, temporary
, text
, unix
default-language: Haskell2010