-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathWORKSPACE
40 lines (29 loc) · 1.01 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
workspace(name = "rules_haskell_tutorial")
local_repository(
name = "rules_haskell",
path = "..",
)
load("@rules_haskell//haskell:repositories.bzl", "rules_haskell_dependencies")
rules_haskell_dependencies()
load("@rules_haskell//haskell:nixpkgs.bzl", "haskell_register_ghc_nixpkgs")
GHC_VERSION = "9.4.8"
haskell_register_ghc_nixpkgs(
attribute_path = "haskell.compiler.ghc{}".format(GHC_VERSION.replace(".", "")),
repository = "@rules_haskell//nixpkgs:default.nix",
version = GHC_VERSION,
)
load("@rules_haskell//haskell:toolchain.bzl", "rules_haskell_toolchains")
rules_haskell_toolchains(version = GHC_VERSION)
load(
"@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl",
"nixpkgs_cc_configure",
"nixpkgs_python_configure",
)
nixpkgs_cc_configure(
# Don't override the default cc toolchain needed for bindist mode.
name = "nixpkgs_config_cc",
repository = "@rules_haskell//nixpkgs:default.nix",
)
nixpkgs_python_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)