-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathWORKSPACE
More file actions
46 lines (35 loc) · 1.09 KB
/
WORKSPACE
File metadata and controls
46 lines (35 loc) · 1.09 KB
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
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(
dist = {
"linux_amd64": "deb10",
},
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",
cc_std = "c++14",
repository = "@rules_haskell//nixpkgs:default.nix",
)
nixpkgs_python_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)