-
Notifications
You must be signed in to change notification settings - Fork 16
/
nix-linter.cabal
138 lines (107 loc) · 2.97 KB
/
nix-linter.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
-- Initial nix-linter.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
-- The name of the package.
name: nix-linter
-- The package version. See the Haskell package versioning policy (PVP)
-- for standards guiding when and how versions should be incremented.
-- https://wiki.haskell.org/Package_versioning_policy
-- PVP summary: +-+------- breaking API changes
-- | | +----- non-breaking API additions
-- | | | +--- code changes with no API change
version: 0.2.0.4
-- A short (one-line) description of the package.
synopsis: Linter for Nix(pkgs), based on hnix
-- A longer description of the package.
-- description:
-- URL for the project homepage or repository.
homepage: https://github.com/Synthetica9/nix-linter
-- The license under which the package is released.
license: BSD3
-- The file containing the license text.
license-file: LICENSE
-- The package author(s).
author: Patrick Hilhorst
-- An email address to which users can send suggestions, bug reports, and
-- patches.
maintainer: nix@hilhorst.be
-- A copyright notice.
-- copyright:
category: Language
build-type: Simple
-- Extra files to be distributed with the package, such as examples or a
-- README.
extra-source-files: CHANGELOG.md
-- Constraint on the version of Cabal needed to build this package.
cabal-version: >=1.10
data-files:
examples/*.nix
flag threaded
default: True
description: Build with multi-threading support
library
exposed-modules:
Data.Pair,
Nix.Linter,
Nix.Linter.Checks,
Nix.Linter.Tools,
Nix.Linter.Tools.FreeVars,
Nix.Linter.Traversals,
Nix.Linter.Types,
Nix.Linter.Utils
build-depends:
base >=4.9,
hnix >=0.13 && < 0.15,
data-fix,
fixplate >= 0.1.7,
cmdargs >= 0.10,
aeson >= 1.3,
containers >= 0.5,
text >= 0.1.2.3
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -O2 -Wall -Werror -Wno-error=name-shadowing
executable nix-linter
main-is: Main.hs
other-modules:
Opts
Paths_nix_linter
hs-source-dirs: main
default-language: Haskell2010
build-depends:
-- The main package:
nix-linter,
-- Packages only used here:
streamly >=0.8,
mtl >=1.1,
path-io >=1.4,
path >= 0.6,
pretty-terminal >= 0.1 && < 0.2,
-- Packages also used in the library:
text,
base,
aeson,
cmdargs,
containers,
hnix,
bytestring
if flag(threaded)
ghc-options: -threaded -rtsopts -with-rtsopts=-N
ghc-options: -O2 -Wall -Werror
test-suite nix-linter-unit-tests
hs-source-dirs: tests
default-language: Haskell2010
main-is: Main.hs
type: exitcode-stdio-1.0
other-modules:
Paths_nix_linter
build-depends:
nix-linter,
tasty,
tasty-th,
tasty-hunit,
directory,
filepath,
base,
containers,
mtl,
hnix