about summary refs log tree commit diff
path: root/WORKSPACE
blob: c06fcc2ed3c4b4012468b6816301b5da16302718 (plain) (blame)
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
# -*- 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",
)

load(
  "@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl",
  "nixpkgs_cc_configure",
  "nixpkgs_package",
)

nixpkgs_cc_configure(
  repositories = { "nixpkgs": "default.nix" },
)

# 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" }
)