packages feed

nix-graph-1.0.2.0: nix-graph.cabal

cabal-version: 2.2

name:        nix-graph
version:     1.0.2.0
synopsis:    Reify the Nix build graph into a Haskell graph data structure
description: Reify the Nix build graph into a Haskell graph data structure
category:    Nix, Graphs
author:      Arista Networks <opensource@awakesecurity.com>
maintainer:  Arista Networks <opensource@awakesecurity.com>
homepage:    https://github.com/awakesecurity/nix-graph
license:     BSD-3-Clause
copyright:   2022 Arista Networks
tested-with: GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.4

license-file: LICENSE
extra-source-files:
  CHANGELOG.md
  LICENSE
  README.md

common common
  build-depends: base >= 4.12 && < 5.0
  default-language: Haskell2010
  ghc-options:
    -Wall
    -Wcompat
    -Werror=incomplete-record-updates
    -Werror=incomplete-uni-patterns
    -Werror=missing-fields
    -Werror=partial-fields
    -Widentities
    -Wmissing-home-modules
    -Wredundant-constraints
    -fshow-warning-groups

common executable
  ghc-options:
    -threaded
    -rtsopts
    -with-rtsopts=-N

library
  import: common
  hs-source-dirs: src
  build-depends:
    , algebraic-graphs >= 0.5    && < 0.6
    , attoparsec       >= 0.13.1 && < 0.15
    , containers
    , hashable
    , nix-derivation   >= 1.1.0  && < 2.0
    , stm              >= 2.4.2
    , text
    , ttrie            >= 0.1.2  && < 0.2
    , unliftio         >= 0.2.6  && < 0.3
    , unordered-containers
  exposed-modules:
    Nix.Graph
    Nix.Graph.Internal

executable nix-graph
  import: common, executable
  hs-source-dirs: app
  main-is: Main.hs
  build-depends:
    , algebraic-graphs
    , nix-graph
    , optparse-applicative >= 0.14.0.0