forked from TokTok/hs-toxcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
63 lines (60 loc) · 1.95 KB
/
BUILD.bazel
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
load("@rules_haskell//haskell:defs.bzl", "haskell_library")
load("//third_party/haskell/hspec-discover:build_defs.bzl", "hspec_test")
load("//tools/project:build_defs.bzl", "project")
project(
custom_cirrus = True,
license = "gpl3-https",
)
haskell_library(
name = "hs-toxcore",
srcs = glob(["src/**/*.*hs"]),
ghcopts = ["-j4"],
src_strip_prefix = "src",
tags = ["no-cross"],
version = "0.2.12",
visibility = ["//visibility:public"],
deps = [
"//hs-msgpack-arbitrary",
"//hs-msgpack-binary",
"//hs-msgpack-types",
"//third_party/haskell:MonadRandom",
"//third_party/haskell:QuickCheck",
"//third_party/haskell:base",
"//third_party/haskell:base16-bytestring",
"//third_party/haskell:binary",
"//third_party/haskell:bytestring",
"//third_party/haskell:clock",
"//third_party/haskell:containers",
"//third_party/haskell:entropy",
"//third_party/haskell:integer-gmp",
"//third_party/haskell:iproute",
"//third_party/haskell:lens-family",
"//third_party/haskell:monad-validate",
"//third_party/haskell:mtl",
"//third_party/haskell:network",
"//third_party/haskell:random",
"//third_party/haskell:saltine",
"//third_party/haskell:transformers",
],
)
hspec_test(
name = "testsuite",
size = "small",
ghcopts = ["-j4"],
deps = [
":hs-toxcore",
"//hs-msgpack-binary",
"//hs-msgpack-types",
"//third_party/haskell:QuickCheck",
"//third_party/haskell:async",
"//third_party/haskell:base",
"//third_party/haskell:binary",
"//third_party/haskell:bytestring",
"//third_party/haskell:containers",
"//third_party/haskell:hspec",
"//third_party/haskell:monad-validate",
"//third_party/haskell:mtl",
"//third_party/haskell:saltine",
"//third_party/haskell:text",
],
)