# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

# ebuild generated by hackport 0.9.0.0.9999

CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
inherit haskell-cabal

DESCRIPTION="NAR file format"
HOMEPAGE="https://github.com/haskell-nix/hnix-store"

LICENSE="Apache-2.0"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="bounded-memory"

RDEPEND=">=dev-haskell/algebraic-graphs-0.5:=[profile?] <dev-haskell/algebraic-graphs-0.8:=[profile?]
	dev-haskell/case-insensitive:=[profile?]
	dev-haskell/cereal:=[profile?]
	dev-haskell/lifted-base:=[profile?]
	dev-haskell/monad-control:=[profile?]
	dev-haskell/text:=[profile?]
	dev-haskell/unordered-containers:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( dev-haskell/base64-bytestring
		dev-haskell/cryptonite
		dev-haskell/hspec
		dev-haskell/tasty
		dev-haskell/tasty-hspec
		dev-haskell/tasty-hunit
		dev-haskell/tasty-quickcheck
		dev-haskell/temporary )
"

src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag bounded-memory bounded_memory)
}