forked from teh/hsseccomp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hsseccomp.cabal
87 lines (81 loc) · 2.11 KB
/
hsseccomp.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
name: hsseccomp
version: 0.2.0.1
synopsis: Haskell bindings to libseccomp
description: Bindings to libseccomp. See "System.Linux.Seccomp" for docs.
.
Requires header files for libseccomp to be installed.
(On Debian-based systems, this can be done with
`sudo apt install libseccomp-dev`.
license: LGPL
license-file: LICENSE
author: Tom Hunger, Cornelius Diekmann
maintainer: [email protected]
category: System
build-type: Simple
cabal-version: >=1.10
bug-reports: https://github.com/teh/hsseccomp/issues
tested-with:
GHC==8.4.3
, GHC==8.2.2
source-repository head
type: git
location: https://github.com/teh/hsseccomp
flag stack-based-tests
description: enable tests requiring stack
manual: True
default: False
library
exposed-modules:
System.Linux.Seccomp
System.Linux.Seccomp.Types
System.Linux.Seccomp.Types.Internal
build-depends:
base >=4.8 && <5
, unix
hs-source-dirs:
src
default-language: Haskell2010
build-tools:
hsc2hs
ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
-- hsc2hs seems to produce non-ISO, gcc-specific,
-- variadic macro code, so suppress warnings for that
cc-options: -pedantic -Wall -Wextra -Wno-variadic-macros
c-sources:
cbits/macros.c
cbits/seccomp_rule_add.c
extra-libraries:
seccomp
pkgconfig-depends:
libseccomp
test-suite seccomp-test
type: exitcode-stdio-1.0
main-is: tests.hs
build-depends:
base >=4.8 && <5
, hsseccomp
, tasty
, tasty-hunit
, unix
hs-source-dirs:
tests
default-language: Haskell2010
ghc-options: -Wall -rtsopts
test-suite doctest-tests
type: exitcode-stdio-1.0
main-is: doctest-tests.hs
hs-source-dirs:
test-other
ghc-options: -Wall -rtsopts
if !(flag(stack-based-tests))
buildable: False
else
build-depends:
Glob
, base
, doctest
, filepath
, hsseccomp
, shelly
, text
default-language: Haskell2010