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-06-10 17:16:38 +03:00
|
|
|
version: 0.5.0.0
|
2018-04-26 18:17:03 +03:00
|
|
|
synopsis: Core effects for interacting with the Nix store.
|
|
|
|
description:
|
2021-03-16 11:54:23 +03:00
|
|
|
This package contains types and functions needed to describe
|
|
|
|
interactions with the Nix store abstracted away from
|
|
|
|
specific effectful context.
|
2018-04-26 18:17:03 +03:00
|
|
|
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
|
2021-03-16 11:54:23 +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
|
2021-03-16 11:54:23 +03:00
|
|
|
exposed-modules:
|
|
|
|
System.Nix.Base32
|
|
|
|
, System.Nix.Build
|
|
|
|
, System.Nix.Derivation
|
|
|
|
, System.Nix.Hash
|
2021-06-08 14:23:25 +03:00
|
|
|
, System.Nix.Internal.Base
|
2021-03-16 11:54:23 +03:00
|
|
|
, System.Nix.Internal.Base32
|
2021-06-08 14:23:25 +03:00
|
|
|
, System.Nix.Internal.Truncation
|
2021-03-16 11:54:23 +03:00
|
|
|
, System.Nix.Internal.Hash
|
|
|
|
, System.Nix.Internal.Nar.Parser
|
|
|
|
, System.Nix.Internal.Nar.Streamer
|
|
|
|
, System.Nix.Internal.Nar.Effects
|
|
|
|
, System.Nix.Internal.Signature
|
|
|
|
, System.Nix.Internal.StorePath
|
|
|
|
, System.Nix.Nar
|
|
|
|
, System.Nix.ReadonlyStore
|
|
|
|
, System.Nix.Signature
|
|
|
|
, System.Nix.StorePath
|
|
|
|
, System.Nix.StorePathMetadata
|
|
|
|
build-depends:
|
2021-08-06 17:38:27 +03:00
|
|
|
base >=4.12 && <5
|
|
|
|
, relude
|
2021-03-16 11:54:23 +03:00
|
|
|
, attoparsec
|
|
|
|
, algebraic-graphs >= 0.5 && < 0.6
|
|
|
|
, base16-bytestring
|
|
|
|
, base64-bytestring
|
|
|
|
, bytestring
|
|
|
|
, cereal
|
|
|
|
, containers
|
2021-06-09 15:24:52 +03:00
|
|
|
-- Required for cryptonite low-level type convertion
|
|
|
|
, memory
|
|
|
|
, cryptonite
|
2021-03-16 11:54:23 +03:00
|
|
|
, directory
|
|
|
|
, filepath
|
|
|
|
, hashable
|
|
|
|
, lifted-base
|
|
|
|
, monad-control
|
|
|
|
, mtl
|
|
|
|
, nix-derivation >= 1.1.1 && <2
|
|
|
|
, saltine
|
|
|
|
, time
|
|
|
|
, text
|
|
|
|
, unix
|
|
|
|
, unordered-containers
|
|
|
|
, vector
|
2021-08-06 17:38:43 +03:00
|
|
|
mixins:
|
|
|
|
base hiding (Prelude)
|
|
|
|
, relude (Relude as Prelude)
|
|
|
|
, relude
|
2021-08-06 17:21:41 +03:00
|
|
|
default-extensions:
|
|
|
|
OverloadedStrings
|
|
|
|
, DeriveGeneric
|
|
|
|
, DeriveDataTypeable
|
|
|
|
, DeriveFunctor
|
|
|
|
, DeriveFoldable
|
|
|
|
, DeriveTraversable
|
|
|
|
, DeriveLift
|
|
|
|
, FlexibleContexts
|
|
|
|
, FlexibleInstances
|
|
|
|
, StandaloneDeriving
|
|
|
|
, TypeApplications
|
|
|
|
, TypeSynonymInstances
|
|
|
|
, InstanceSigs
|
|
|
|
, MultiParamTypeClasses
|
|
|
|
, TupleSections
|
|
|
|
, LambdaCase
|
|
|
|
, BangPatterns
|
|
|
|
, ViewPatterns
|
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
|
2021-03-16 11:53:20 +03:00
|
|
|
ghc-options: -rtsopts -fprof-auto
|
2021-01-06 13:51:12 +03:00
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: Driver.hs
|
|
|
|
other-modules:
|
2021-03-16 11:54:23 +03:00
|
|
|
Arbitrary
|
|
|
|
Derivation
|
|
|
|
NarFormat
|
|
|
|
Hash
|
|
|
|
StorePath
|
2021-01-06 13:51:12 +03:00
|
|
|
hs-source-dirs:
|
2021-03-16 11:54:23 +03:00
|
|
|
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
|
2021-08-06 17:38:43 +03:00
|
|
|
, relude
|
2021-01-06 13:51:12 +03:00
|
|
|
, base16-bytestring
|
|
|
|
, base64-bytestring
|
|
|
|
, binary
|
|
|
|
, bytestring
|
|
|
|
, containers
|
2021-06-09 15:24:52 +03:00
|
|
|
, cryptonite
|
2021-01-06 13:51:12 +03:00
|
|
|
, directory
|
|
|
|
, filepath
|
|
|
|
, process
|
|
|
|
, tasty
|
|
|
|
, tasty-golden
|
2021-05-30 18:25:39 +03:00
|
|
|
, hspec
|
2021-01-06 13:51:12 +03:00
|
|
|
, tasty-hspec
|
|
|
|
, tasty-hunit
|
|
|
|
, tasty-quickcheck
|
|
|
|
, temporary
|
|
|
|
, text
|
|
|
|
, unix
|
2021-08-06 17:38:43 +03:00
|
|
|
mixins:
|
|
|
|
base hiding (Prelude)
|
|
|
|
, relude (Relude as Prelude)
|
|
|
|
, relude
|
2021-08-06 17:21:41 +03:00
|
|
|
default-extensions:
|
|
|
|
OverloadedStrings
|
|
|
|
, DeriveGeneric
|
|
|
|
, DeriveDataTypeable
|
|
|
|
, DeriveFunctor
|
|
|
|
, DeriveFoldable
|
|
|
|
, DeriveTraversable
|
|
|
|
, DeriveLift
|
|
|
|
, FlexibleContexts
|
|
|
|
, FlexibleInstances
|
|
|
|
, StandaloneDeriving
|
|
|
|
, TypeApplications
|
|
|
|
, TypeSynonymInstances
|
|
|
|
, InstanceSigs
|
|
|
|
, MultiParamTypeClasses
|
|
|
|
, TupleSections
|
|
|
|
, LambdaCase
|
|
|
|
, BangPatterns
|
|
|
|
, ViewPatterns
|
2021-01-06 13:51:12 +03:00
|
|
|
default-language: Haskell2010
|