-
Notifications
You must be signed in to change notification settings - Fork 24
/
cabal-dev.cabal
187 lines (163 loc) · 5.57 KB
/
cabal-dev.cabal
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
Name: cabal-dev
Version: 0.9.2
Synopsis: Manage sandboxed Haskell build environments
Description: cabal-dev is a tool for managing development builds of
Haskell projects. It supports maintaining sandboxed
cabal-install repositories, and sandboxed ghc package
databases.
.
By default, it uses a cabal-dev directory under
the current working directory as the sandbox.
.
For most packages, just use @cabal-dev@ instead of
@cabal@, and you will get a sandboxed build that
will not install anything (even automatically installed
dependencies) into the user or global ghc package
databases.
.
If your build depends on patched or unreleased libraries,
you can add them to your sandboxed build environment by
installing them to the sandbox directly:so
.
> cd /path/to/dependency
> cabal-dev install --sandbox=/path/to/sandbox
.
Then build your library/application with the specified
sandbox.
.
.
Additional documentation can be found in the README.md on
github:
.
<http://github.com/creswick/cabal-dev/blob/master/README.md>
License: BSD3
License-file: LICENSE
Author: Josh Hoyt, Jonathan Daugherty, Rogan Creswick
Maintainer: joshhoyt@gmail.com, jtd@galois.com, creswick@galois.com
Homepage: http://github.com/creswick/cabal-dev
Bug-Reports: http://github.com/creswick/cabal-dev/issues
Copyright: 2010-2013 Galois, Inc.
Category: Development
Build-type: Custom
Cabal-version: >=1.6
Data-Files:
admin/cabal-config.in,
admin/00-index.tar
Tested-with: GHC == 7.4.1, GHC == 7.6.1
source-repository head
type: git
location: git://github.com/creswick/cabal-dev.git
Flag no-cabal-dev
Description: Do not build cabal-dev (just build ghc-pkg-6_8-compat).
This is useful for bootstrapping on GHC 6.8.
Default: False
-- Don't try to flip this flag when looking for a
-- satisfiable configuration for this package
Manual: True
Flag build-tests
Description: Build and install the test executable
Default: False
Manual: True
Executable cabal-dev
HS-Source-Dirs: src
Main-is: Main.hs
GHC-Options: -Wall
Extensions: TemplateHaskell
if flag(no-cabal-dev)
Buildable: False
else
if impl(ghc >= 6.10)
Build-depends:
base >= 4 && < 5
else
Build-depends:
base >= 3 && < 4
-- Containers 0.2 did not specify a constraint on base, so we
-- avoid using it:
if impl(ghc >= 6.12)
Build-depends:
containers >= 0.3 && < 0.6
-- Require this specific version that came with GHC 6.10 because
-- of packaging problems with containers-0.2
if impl(ghc == 6.10)
Build-depends:
containers == 0.2.0.1
if impl(ghc == 6.8)
Build-depends:
containers == 0.1.0.2
if impl(ghc >= 7.6.1)
CPP-Options: -DNO_PRELUDE_CATCH
Build-depends:
bytestring >= 0.9 && < 0.11,
directory >= 1.0 && < 1.3,
filepath >= 1.1 && < 1.4,
Cabal >= 1.10.0.0 && < 1.22,
HTTP >= 4000.0.9 && < 4000.3,
mtl >= 1.1 && < 2.2,
network >= 2.2 && < 2.5,
pretty >= 1.0 && < 1.2,
process >= 1.0 && < 1.3,
tar >= 0.4 && < 0.5,
zlib >= 0.5 && < 0.6,
transformers >= 0.2 && < 0.4,
setenv == 0.1.*,
-- Template haskell is special: the compiler will die if a
-- version other than the one that is shipped with the compiler
-- is used. Here, we don't constrain the version and hope that
-- there will be only one.
template-haskell
if os(windows)
build-depends: Win32 >= 2.1 && < 2.4
Build-tools:
cabal >= 0.8.2
Other-modules:
Distribution.Dev.AddSource,
Distribution.Dev.BuildOpts,
Distribution.Dev.CabalInstall,
Distribution.Dev.Command,
Distribution.Dev.Flags,
Distribution.Dev.Ghci,
Distribution.Dev.GhcPkg,
Distribution.Dev.GhcArgs,
Distribution.Dev.InitPkgDb,
Distribution.Dev.InstallDependencies,
Distribution.Dev.InterrogateCabalInstall,
Distribution.Dev.InvokeCabal,
Distribution.Dev.MergeCabalConfig,
Distribution.Dev.RewriteCabalConfig,
Distribution.Dev.Sandbox,
Distribution.Dev.TH.DeriveCabalCommands,
Distribution.Dev.Utilities
Executable ghc-pkg-6_8-compat
Main-is: GhcPkgCompat.hs
Build-Depends:
base < 5,
Cabal >=1.2 && < 1.22,
process >= 1.0 && < 1.3
GHC-Options: -Wall
HS-Source-Dirs: src
Executable cabal-dev-test
Main-is: RunTests.hs
GHC-Options: -Wall
HS-Source-Dirs: src, test
if flag(no-cabal-dev) || !flag(build-tests)
Buildable: False
else
if impl(ghc >= 6.10)
Build-depends:
base >= 4 && < 5
else
Build-depends:
base >= 3 && < 4
Build-depends:
MonadRandom >= 0.1 && < 0.2,
random >= 1 && < 1.1,
test-framework >= 0.3 && < 0.9,
test-framework-hunit >= 0.2,
HUnit >= 1.2 && <2
if os(windows)
build-depends: Win32 >= 2.1 && < 2.4
Executable fake-ghc-cabal-dev
HS-Source-Dirs: src/
Build-depends: base
Main-is: FakeGhc.hs