-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcabal-add.cabal
107 lines (95 loc) · 2.46 KB
/
cabal-add.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
cabal-version: 3.0
name: cabal-add
version: 0.1
license: BSD-3-Clause
license-file: LICENSE
maintainer: [email protected]
author: Bodigrim
tested-with:
ghc ==9.12.1 ghc ==9.10.1 ghc ==9.8.2 ghc ==9.6.6 ghc ==9.4.8
ghc ==9.2.8
synopsis: Extend Cabal build-depends from the command line
description:
Extend Cabal @build-depends@ from the command line.
It works on any sectioned Cabal file,
supports stanzas and conditional blocks,
and preserves original formatting.
category: Development
build-type: Simple
extra-doc-files:
README.md
CHANGELOG.md
source-repository head
type: git
location: https://github.com/Bodigrim/cabal-add.git
flag cabal-syntax
default: False
library
exposed-modules: Distribution.Client.Add
hs-source-dirs: src
default-language: GHC2021
ghc-options: -Wall
build-depends:
base <5,
bytestring <0.13,
Cabal >=3.6 && <3.15,
containers <0.9,
mtl <2.4
if flag(cabal-syntax)
build-depends:
Cabal-syntax >=3.8 && <3.15,
Cabal >=3.8
else
build-depends:
Cabal-syntax <3.7,
Cabal <3.7
executable cabal-add
main-is: Main.hs
hs-source-dirs: app
default-language: GHC2021
ghc-options: -Wall
build-depends:
base <5,
bytestring <0.13,
cabal-add,
cabal-install-parsers >=0.4.1 && <0.7,
directory <1.4,
filepath <1.6,
optparse-applicative >=0.16 && <0.19,
process <1.7
if flag(cabal-syntax)
build-depends: Cabal-syntax
else
build-depends: Cabal
test-suite cabal-add-tests
type: exitcode-stdio-1.0
main-is: Main.hs
build-tool-depends: cabal-add:cabal-add
hs-source-dirs: tests
default-language: GHC2021
ghc-options: -Wall
build-depends:
base <5,
Diff >=0.4,
directory,
process,
string-qq,
tasty,
temporary
test-suite cabal-add-unit-tests
type: exitcode-stdio-1.0
main-is: UnitTests.hs
hs-source-dirs: tests/
default-language: GHC2021
ghc-options: -Wall
build-depends:
base <5,
bytestring,
Cabal,
cabal-add,
Diff >=0.4,
directory,
process,
string-qq,
tasty,
temporary