Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
avdv committed Dec 1, 2020
1 parent 5053f78 commit eda15ac
Show file tree
Hide file tree
Showing 6 changed files with 395 additions and 37 deletions.
8 changes: 4 additions & 4 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ package(default_visibility = ["//visibility:public"])
#
# bazel run -c opt //:buildifier
#
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
#load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")

buildifier(
name = "buildifier",
)
#buildifier(
# name = "buildifier",
#)
66 changes: 33 additions & 33 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -138,46 +138,46 @@ nixpkgs_python_configure(

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "io_bazel_rules_go",
sha256 = "f99a9d76e972e0c8f935b2fe6d0d9d778f67c760c6d2400e23fc2e469016e2bd",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.21.2/rules_go-v0.21.2.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.21.2/rules_go-v0.21.2.tar.gz",
],
)
#http_archive(
# name = "io_bazel_rules_go",
# sha256 = "f99a9d76e972e0c8f935b2fe6d0d9d778f67c760c6d2400e23fc2e469016e2bd",
# urls = [
# "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.21.2/rules_go-v0.21.2.tar.gz",
# "https://github.com/bazelbuild/rules_go/releases/download/v0.21.2/rules_go-v0.21.2.tar.gz",
# ],
#)

load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
#load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

go_rules_dependencies()
#go_rules_dependencies()

go_register_toolchains()
#go_register_toolchains()

http_archive(
name = "bazel_gazelle",
sha256 = "be9296bfd64882e3c08e3283c58fcb461fa6dd3c171764fcc4cf322f60615a9b",
urls = [
"https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/bazel-gazelle/releases/download/0.18.1/bazel-gazelle-0.18.1.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/0.18.1/bazel-gazelle-0.18.1.tar.gz",
],
)
#http_archive(
# name = "bazel_gazelle",
# sha256 = "be9296bfd64882e3c08e3283c58fcb461fa6dd3c171764fcc4cf322f60615a9b",
# urls = [
# "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/bazel-gazelle/releases/download/0.18.1/bazel-gazelle-0.18.1.tar.gz",
# "https://github.com/bazelbuild/bazel-gazelle/releases/download/0.18.1/bazel-gazelle-0.18.1.tar.gz",
# ],
#)

load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
#load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")

gazelle_dependencies()
#gazelle_dependencies()

http_archive(
name = "com_google_protobuf",
strip_prefix = "protobuf-master",
urls = ["https://github.com/protocolbuffers/protobuf/archive/master.zip"],
)
#http_archive(
# name = "com_google_protobuf",
# strip_prefix = "protobuf-master",
# urls = ["https://github.com/protocolbuffers/protobuf/archive/master.zip"],
#)

load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
#load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()
#protobuf_deps()

http_archive(
name = "com_github_bazelbuild_buildtools",
strip_prefix = "buildtools-master",
url = "https://github.com/bazelbuild/buildtools/archive/master.zip",
)
#http_archive(
# name = "com_github_bazelbuild_buildtools",
# strip_prefix = "buildtools-master",
# url = "https://github.com/bazelbuild/buildtools/archive/master.zip",
#)
2 changes: 2 additions & 0 deletions ghc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ in haskellPackages.ghcWithPackages (p: with p; [
vector
xml-conduit
xml-types
xmonad
xmonad-contrib
# tons of other packages here
])
5 changes: 5 additions & 0 deletions treetide/thirdparty/haskell/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ haskell_toolchain_library(name = "containers")

haskell_toolchain_library(name = "deepseq")

haskell_toolchain_library(name = "directory")

haskell_toolchain_library(name = "mtl")

haskell_toolchain_library(name = "text")
Expand Down Expand Up @@ -49,6 +51,9 @@ haskell_toolchain_library(name = "xml-conduit")

haskell_toolchain_library(name = "xml-types")

haskell_toolchain_library(name = "xmonad")
haskell_toolchain_library(name = "xmonad-contrib")

# ...
#
# Tons of stuff here again
Expand Down
37 changes: 37 additions & 0 deletions xmonad/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package(default_visibility = ["//visibility:public"])

load(
"@rules_haskell//haskell:defs.bzl",
"haskell_library",
"haskell_test",
"haskell_binary",
)
load(
"//treetide/haskell/build_defs:build.bzl",
"prebuilt",
"extended",
)

#haskell_library(
# name = "foo",
# srcs = ["foo.hs"],
# deps = [
# extended("attoparsec"),
# prebuilt("base"),
# prebuilt("text"),
# ],
#)


haskell_binary(
name = "xmonad",
srcs = ["xmonad.hs"],
deps = [
prebuilt("base"),
prebuilt("containers"),
prebuilt("directory"),
prebuilt("xmonad"),
prebuilt("xmonad-contrib"),
],
)

Loading

0 comments on commit eda15ac

Please sign in to comment.