packages feed

xnobar-1.0.0.2: xnobar.cabal

cabal-version: 3.4
name:          xnobar
version:       1.0.0.2
maintainer:    Enrico Maria De Angelis
homepage:      https://codeberg.org/Aster89/xnobar
synopsis:      Text-based notification server for XMobar
description:   Text-based notification server for XMobar. It also exposes just the back-end, to be used as a library, as shown in exe/Echo.hs.
category:      System
license:       BSD-3-Clause

source-repository head
  type:      git
  location:  https://codeberg.org/Aster89/xnobar.git
  branch:    master

common common
    default-language: GHC2024
    build-depends: base >= 4.18.1 && < 5

library
    import: common
    exposed-modules: XNobar
    build-depends: xmobar >= 0.48.1 && < 0.52
                 , xnobar:server
                 , xnobar:scroller
                 , text
                 , text-icu
    hs-source-dirs: lib/XNobar

executable echo
    import: common
    build-depends: xnobar:positive32
                 , xnobar:scroller
                 , xnobar:server
                 , xmobar
    hs-source-dirs: exe
    main-is: Echo.hs

library server
    import: common
    visibility: public
    exposed-modules: XNobar.Server
    build-depends: dbus >= 1.3.6 && < 1.5
                 , extra >= 1.7.16 && < 1.9
                 , flow >= 2.0.0 && < 2.1
                 , transformers >= 0.6.1 && < 0.7
                 , xnobar:notification
                 , xnobar:positive32
    hs-source-dirs: lib/Server

library notification
    import: common
    exposed-modules: XNobar.Internal.Notification
    build-depends: containers >= 0.6.8 && < 0.9
                 , dbus
                 , flow
                 , xnobar:positive32
    hs-source-dirs: lib/Notification

library scroller
    import: common
    exposed-modules: XNobar.Scroller, XNobar.Internal.Scroller
    build-depends: async >= 2.2.5 && < 2.3
                 , directory >= 1.3.8 && < 1.4
                 , extra
                 , flow
                 , mtl >= 2.3.1 && < 2.4
                 , process >= 1.6.18 && < 1.7
                 , xmobar
                 , xnobar:notification
                 , xnobar:positive32
                 , xnobar:server
    hs-source-dirs: lib/Scroller

library positive32
    import: common
    exposed-modules: XNobar.Internal.Positive32
    hs-source-dirs: lib/Positive32

test-suite test
    import: common
    type: exitcode-stdio-1.0
    main-is: Main.hs
    build-depends: QuickCheck
                 , extra
                 , xnobar:notification
                 , xnobar:positive32
                 , xnobar:scroller
    hs-source-dirs: test