From ec3bc06f651eaaec3e061a2ab6a475febfb2a198 Mon Sep 17 00:00:00 2001 From: iphydf Date: Tue, 13 Feb 2018 23:48:56 +0000 Subject: [PATCH] Add bazel BUILD config for hs-toxcore. --- BUILD.bazel | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/BUILD.bazel b/BUILD.bazel index 7052e2fa..3129f9cf 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,3 +1,35 @@ +load("@io_tweag_rules_haskell//haskell:haskell.bzl", "haskell_library") load("//tools:project.bzl", "project") project("hs-toxcore") + +haskell_library( + name = "hs-toxcore", + srcs = glob(["src/tox/**/*.*hs"]), + prebuilt_dependencies = [ + "base", + "binary", + "bytestring", + "containers", + "integer-gmp", + "transformers", + ], + src_strip_prefix = "src/tox", + visibility = ["//visibility:public"], + deps = [ + "//hs-msgpack", + "//hs-msgpack-rpc", + "@haskell_MonadRandom//:MonadRandom", + "@haskell_QuickCheck//:QuickCheck", + "@haskell_base16_bytestring//:base16-bytestring", + "@haskell_binary_bits//:binary-bits", + "@haskell_clock//:clock", + "@haskell_entropy//:entropy", + "@haskell_iproute//:iproute", + "@haskell_lens_family//:lens-family", + "@haskell_mtl//:mtl", + "@haskell_network//:network", + "@haskell_random//:random", + "@haskell_saltine//:saltine", + ], +)