-
Notifications
You must be signed in to change notification settings - Fork 2
/
WORKSPACE
30 lines (24 loc) · 842 Bytes
/
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
workspace(name = "subtyping")
http_archive(
name = "io_tweag_rules_haskell",
strip_prefix = "rules_haskell-d867758114020f7eeaa83ffbda6393e131ed1462",
urls = ["https://github.com/tweag/rules_haskell/archive/d867758114020f7eeaa83ffbda6393e131ed1462.tar.gz"]
)
load("@io_tweag_rules_haskell//haskell:repositories.bzl", "haskell_repositories")
haskell_repositories()
http_archive(
name = "io_tweag_rules_nixpkgs",
strip_prefix = "rules_nixpkgs-0.2",
urls = ["https://github.com/tweag/rules_nixpkgs/archive/v0.2.tar.gz"],
)
load("@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl", "nixpkgs_package")
nixpkgs_package(
name = "ghc",
nix_file_content = """
let pkgs = import <nixpkgs> {}; in
pkgs.haskell.packages.ghc822.ghcWithPackages (p: with p;
[containers parsec mtl haskeline]
)
""",
)
register_toolchains("//:ghc")