2019-07-04 12:19:40 +02:00
|
|
|
# -*- mode: bazel; -*-
|
|
|
|
#
|
|
|
|
# This workspace configuration loads all Bazel rule sets that need to
|
|
|
|
# be available in the entire repository.
|
|
|
|
|
|
|
|
workspace(name = "tazjin_monorepo")
|
|
|
|
|
|
|
|
# SECTION: Nix
|
|
|
|
|
|
|
|
local_repository(
|
|
|
|
name = "io_tweag_rules_nixpkgs",
|
|
|
|
path = "third_party/bazel/rules_nixpkgs",
|
|
|
|
)
|
|
|
|
|
2019-07-04 16:54:53 +02:00
|
|
|
load(
|
|
|
|
"@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl",
|
|
|
|
"nixpkgs_cc_configure",
|
|
|
|
"nixpkgs_package",
|
|
|
|
)
|
|
|
|
|
|
|
|
nixpkgs_cc_configure(
|
|
|
|
repositories = { "nixpkgs": "default.nix" },
|
|
|
|
)
|
2019-07-04 12:19:40 +02:00
|
|
|
|
|
|
|
# SECTION: Haskell
|
|
|
|
|
|
|
|
local_repository(
|
|
|
|
name = "io_tweag_rules_haskell",
|
|
|
|
path = "third_party/bazel/rules_haskell",
|
|
|
|
)
|
|
|
|
|
|
|
|
load(
|
|
|
|
"@io_tweag_rules_haskell//haskell:repositories.bzl",
|
|
|
|
"haskell_repositories"
|
|
|
|
)
|
|
|
|
|
|
|
|
haskell_repositories()
|
|
|
|
|
|
|
|
load(
|
|
|
|
"@io_tweag_rules_haskell//haskell:nixpkgs.bzl",
|
|
|
|
"haskell_register_ghc_nixpkgs",
|
|
|
|
)
|
|
|
|
|
|
|
|
haskell_register_ghc_nixpkgs(
|
|
|
|
version = "8.6.4",
|
|
|
|
repositories = { "nixpkgs": "default.nix" }
|
|
|
|
)
|