persistent-sqlite.cabal 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. name: persistent-sqlite
  2. version: 2.10.0
  3. license: MIT
  4. license-file: LICENSE
  5. author: Michael Snoyman <michael@snoyman.com>
  6. maintainer: Michael Snoyman <michael@snoyman.com>
  7. synopsis: Backend for the persistent library using sqlite3.
  8. description: This package includes a thin sqlite3 wrapper based on the direct-sqlite package, as well as the entire C library, so there are no system dependencies.
  9. category: Database, Yesod
  10. stability: Stable
  11. cabal-version: >= 1.10
  12. build-type: Simple
  13. homepage: http://www.yesodweb.com/book/persistent
  14. bug-reports: https://github.com/yesodweb/persistent/issues
  15. extra-source-files: ChangeLog.md cbits/*.c cbits/*.h
  16. flag systemlib
  17. description: Use the system-wide sqlite library
  18. default: False
  19. flag use-pkgconfig
  20. description: Use pkg-config to find system sqlite library
  21. default: False
  22. flag build-sanity-exe
  23. description: Build a sanity check test executable
  24. default: False
  25. flag full-text-search
  26. description: Enable full-text search in the vendored SQLite library; has no effect if a system SQLite library is used.
  27. default: True
  28. flag uri-filenames
  29. description: Enable URI filenames in the vendored SQLite library; has no effect if a system SQLite library is used.
  30. default: True
  31. flag have-usleep
  32. description: Enable usleep in the vendored SQLite library; has no effect if a system SQLite library is used.
  33. default: True
  34. flag json1
  35. description: Enable json1 in the vendored SQLite library; has no effect if a system SQLite library is used.
  36. default: True
  37. library
  38. build-depends: base >= 4.9 && < 5
  39. , persistent >= 2.10 && < 3
  40. , aeson >= 1.0
  41. , bytestring >= 0.10
  42. , conduit >= 1.2.12
  43. , containers >= 0.5
  44. , microlens-th >= 0.4.1.1
  45. , monad-logger >= 0.3.25
  46. , resource-pool
  47. , resourcet >= 1.1.9
  48. , text >= 1.2
  49. , time
  50. , transformers >= 0.5
  51. , unliftio-core
  52. , unordered-containers
  53. exposed-modules: Database.Sqlite
  54. Database.Persist.Sqlite
  55. ghc-options: -Wall
  56. default-language: Haskell2010
  57. if flag(systemlib)
  58. if flag(use-pkgconfig)
  59. pkgconfig-depends: sqlite3
  60. else
  61. extra-libraries: sqlite3
  62. else
  63. c-sources: cbits/sqlite3.c
  64. include-dirs: cbits
  65. cc-options: -fPIC -std=c99
  66. if flag(full-text-search)
  67. cc-options: -DSQLITE_ENABLE_FTS3
  68. -DSQLITE_ENABLE_FTS3_PARENTHESIS
  69. -DSQLITE_ENABLE_FTS4
  70. -DSQLITE_ENABLE_FTS5
  71. if flag(uri-filenames)
  72. cc-options: -DSQLITE_USE_URI
  73. if flag(have-usleep)
  74. cc-options: -DHAVE_USLEEP
  75. if flag(json1)
  76. cc-options: -DSQLITE_ENABLE_JSON1
  77. c-sources: cbits/config.c
  78. if !os(windows)
  79. extra-libraries: pthread
  80. source-repository head
  81. type: git
  82. location: git://github.com/yesodweb/persistent.git
  83. executable sanity
  84. if flag(build-sanity-exe)
  85. buildable: True
  86. else
  87. buildable: False
  88. main-is: sanity.hs
  89. hs-source-dirs: test
  90. build-depends: base
  91. , persistent-sqlite
  92. , monad-logger
  93. default-language: Haskell2010
  94. test-suite test
  95. type: exitcode-stdio-1.0
  96. main-is: main.hs
  97. hs-source-dirs: test
  98. other-modules: SqliteInit
  99. ghc-options: -Wall
  100. build-depends: base >= 4.9 && < 5
  101. , persistent
  102. , persistent-sqlite
  103. , persistent-template
  104. , persistent-test
  105. , bytestring
  106. , containers
  107. , exceptions
  108. , fast-logger
  109. , hspec >= 2.4
  110. , HUnit
  111. , monad-logger
  112. , QuickCheck
  113. , resourcet
  114. , system-fileio
  115. , system-filepath
  116. , temporary
  117. , text
  118. , time
  119. , transformers
  120. , time
  121. , unliftio-core
  122. default-language: Haskell2010