forked from tweag/rules_haskell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
87 lines (71 loc) · 2.03 KB
/
WORKSPACE
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
workspace(name = "io_tweag_rules_haskell")
load("@io_tweag_rules_haskell//haskell:repositories.bzl", "haskell_repositories")
haskell_repositories()
http_archive(
name = "io_tweag_rules_nixpkgs",
strip_prefix = "rules_nixpkgs-0.1.1",
urls = ["https://github.com/tweag/rules_nixpkgs/archive/v0.1.1.tar.gz"],
)
load("@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl", "nixpkgs_package")
nixpkgs_package(
name = "ghc",
attribute_path = "haskell.compiler.ghc822",
build_file_content = """
package(default_visibility = ["//visibility:public"])
filegroup(
name = "bin",
srcs = glob(["nix/bin/*"]),
)
filegroup(
name = "lib",
srcs = glob(["nix/lib/**/*.so"]),
)
cc_library(
name = "threaded-rts",
srcs = glob(["nix/lib/ghc-*/rts/libHSrts_thr-ghc*.so"]),
hdrs = glob(["nix/lib/ghc-*/include/**/*.h"]),
strip_include_prefix = glob(["nix/lib/ghc-*/include"], exclude_directories=0)[0],
)
""",
)
register_toolchains("//tests:ghc")
nixpkgs_package(name = "zlib", build_file_content = """
package(default_visibility = ["//visibility:public"])
filegroup (
name = "lib",
srcs = glob([
"nix/lib/*.so",
"nix/lib/*.so.*",
]),
testonly = 1,
)
""",
)
nixpkgs_package(name = "zlib.dev", build_file_content = """
package(default_visibility = ["//visibility:public"])
filegroup (
name = "include",
srcs = glob(["nix/include/*.h"]),
testonly = 1,
)
""",
)
maven_jar(
name = "org_apache_spark_spark_core_2_10",
artifact = "org.apache.spark:spark-core_2.10:1.6.0",
)
# For Skydoc
http_archive(
name = "io_bazel_rules_sass",
strip_prefix = "rules_sass-0.0.3",
urls = ["https://github.com/bazelbuild/rules_sass/archive/0.0.3.tar.gz"],
)
load("@io_bazel_rules_sass//sass:sass.bzl", "sass_repositories")
sass_repositories()
http_archive(
name = "io_bazel_skydoc",
strip_prefix = "skydoc-b374449408e759e32e010fa6a20585fe9fabd523",
urls = ["https://github.com/mrkkrp/skydoc/archive/b374449408e759e32e010fa6a20585fe9fabd523.tar.gz"],
)
load("@io_bazel_skydoc//skylark:skylark.bzl", "skydoc_repositories")
skydoc_repositories()