forked from TokTok/hs-toxcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
66 lines (63 loc) · 1.84 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
64
65
66
load("@ai_formation_hazel//tools:mangling.bzl", "hazel_library")
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()
haskell_library(
name = "hs-toxcore",
srcs = glob(["src/**/*.*hs"]),
compiler_flags = [
"-j4",
"-Wno-unused-imports",
],
src_strip_prefix = "src",
version = "0.2.11",
visibility = ["//visibility:public"],
deps = [
"//hs-msgpack-binary",
"//hs-msgpack-rpc-conduit",
hazel_library("MonadRandom"),
hazel_library("QuickCheck"),
hazel_library("base"),
hazel_library("base16-bytestring"),
hazel_library("binary"),
hazel_library("binary-bits"),
hazel_library("bytestring"),
hazel_library("clock"),
hazel_library("containers"),
hazel_library("entropy"),
hazel_library("integer-gmp"),
hazel_library("iproute"),
hazel_library("lens-family"),
hazel_library("mtl"),
hazel_library("network"),
hazel_library("random"),
hazel_library("saltine"),
hazel_library("transformers"),
],
)
hspec_test(
name = "testsuite",
size = "small",
compiler_flags = [
"-j4",
"-Wno-unused-imports",
],
deps = [
":hs-toxcore",
"//hs-msgpack-binary",
"//hs-msgpack-rpc-conduit",
"//hs-msgpack-types",
hazel_library("QuickCheck"),
hazel_library("async"),
hazel_library("base"),
hazel_library("binary"),
hazel_library("binary-bits"),
hazel_library("bytestring"),
hazel_library("containers"),
hazel_library("hspec"),
hazel_library("mtl"),
hazel_library("saltine"),
hazel_library("text"),
],
)