forked from yesodweb/persistent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpersistent-sqlite.cabal
More file actions
88 lines (80 loc) · 2.83 KB
/
persistent-sqlite.cabal
File metadata and controls
88 lines (80 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: persistent-sqlite
version: 2.8.1
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>
maintainer: Michael Snoyman <michael@snoyman.com>
synopsis: Backend for the persistent library using sqlite3.
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.
category: Database, Yesod
stability: Stable
cabal-version: >= 1.8
build-type: Simple
homepage: http://www.yesodweb.com/book/persistent
bug-reports: https://github.com/yesodweb/persistent/issues
extra-source-files: ChangeLog.md cbits/*.c cbits/*.h
flag systemlib
description: Use the system-wide sqlite library
default: False
flag use-pkgconfig
description: Use pkg-config to find system sqlite library
default: False
flag build-sanity-exe
description: Build a sanity check test executable
default: False
library
build-depends: base >= 4.8 && < 5
, bytestring >= 0.9.1
, transformers >= 0.2.1
, persistent >= 2.8.1 && < 3
, unliftio-core
, containers >= 0.2
, text >= 0.7
, aeson >= 0.6.2
, conduit >= 1.2.8
, monad-logger >= 0.2.4
, microlens-th >= 0.4.1.1
, resourcet >= 1.1
, time
, old-locale
, resource-pool
, unordered-containers
exposed-modules: Database.Sqlite
Database.Persist.Sqlite
ghc-options: -Wall
if flag(systemlib)
if flag(use-pkgconfig)
pkgconfig-depends: sqlite3
else
extra-libraries: sqlite3
else
c-sources: cbits/sqlite3.c
include-dirs: cbits
cc-options: -fPIC -std=c99
c-sources: cbits/config.c
if !os(windows)
extra-libraries: pthread
source-repository head
type: git
location: git://github.com/yesodweb/persistent.git
test-suite test
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test
build-depends: base
, hspec
, persistent
, persistent-sqlite
, persistent-template
, temporary
, text
, time
, transformers
executable sanity
if flag(build-sanity-exe)
buildable: True
else
buildable: False
main-is: sanity.hs
hs-source-dirs: test
build-depends: base, persistent-sqlite, monad-logger