packages feed

nvfetcher-0.2.0.0: nvfetcher.cabal

cabal-version:   2.4
name:            nvfetcher
version:         0.2.0.0
synopsis:
  Generate nix sources expr for the latest version of packages

description:     Please see README
homepage:        https://github.com/berberman/nvfetcher
bug-reports:     https://github.com/berberman/nvfetcher/issues
license:         MIT
license-file:    LICENSE
author:          berberman
maintainer:      berberman <berberman.yandex.com>
copyright:       2021 berberman
category:        Nix
build-type:      Simple
extra-doc-files:
  CHANGELOG.md
  README.md

source-repository head
  type:     git
  location: https://github.com/berberman/nvfetcher.git

common common-options
  build-depends:
    , aeson               ^>=1.5.6
    , base                >=4.8    && <5
    , binary
    , bytestring
    , containers
    , extra               ^>=1.7.9
    , free                ^>=5.1.5
    , microlens
    , microlens-th
    , neat-interpolation  ^>=0.5.1
    , shake               ^>=0.19.4
    , text
    , transformers

  ghc-options:
    -Wall -Wcompat -Widentities -Wincomplete-uni-patterns
    -Wincomplete-record-updates -Wredundant-constraints
    -fhide-source-paths -Wno-name-shadowing
    -Wno-unticked-promoted-constructors

  default-language: Haskell2010

library
  import:          common-options
  hs-source-dirs:  src
  other-modules:   NvFetcher.Utils
  exposed-modules:
    NvFetcher
    NvFetcher.Core
    NvFetcher.NixFetcher
    NvFetcher.Nvchecker
    NvFetcher.PackageSet
    NvFetcher.ShakeExtras
    NvFetcher.Types
    NvFetcher.Types.Lens

executable nvfetcher
  import:          common-options
  hs-source-dirs:  app
  main-is:         Main.hs
  other-modules:
    Config
    Paths_nvfetcher

  autogen-modules: Paths_nvfetcher
  build-depends:
    , nvfetcher
    , tomland               ^>=1.3.2
    , validation-selective
    , optparse-simple

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

flag build-example
  description: Build example executable
  manual:      True
  default:     False

executable example
  import:        common-options

  if !flag(build-example)
    buildable: False

  main-is:       Main_example.hs
  build-depends: nvfetcher
  ghc-options:   -threaded -rtsopts -with-rtsopts=-N