-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathWORKSPACE
More file actions
69 lines (54 loc) · 1.68 KB
/
WORKSPACE
File metadata and controls
69 lines (54 loc) · 1.68 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
workspace(name = "com_habito_rules_purescript")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# Import rules_nixpkgs, used to provide support for PureScript toolchains
# backed by Nixpkgs
http_archive(
name = "io_tweag_rules_nixpkgs",
sha256 = "fe9a2b6b92df33dd159d22f9f3abc5cea2543b5da66edbbee128245c75504e41",
strip_prefix = "rules_nixpkgs-674766086cda88976394fbd608620740857e2535",
urls = ["https://github.com/tweag/rules_nixpkgs/archive/674766086cda88976394fbd608620740857e2535.tar.gz"],
)
load(
"@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl",
"nixpkgs_local_repository",
"nixpkgs_package",
)
nixpkgs_local_repository(
name = "nixpkgs",
nix_file = "//nix:nixpkgs.nix",
)
# Import packages from Nixpkgs so that we can define a toolchain for use in
# the test suite
nixpkgs_package(
name = "nixpkgs_purescript",
repositories = {"nixpkgs": "@nixpkgs//:nixpkgs.nix"},
attribute_path = "purescript",
)
nixpkgs_package(
name = "nixpkgs_tar",
repositories = {"nixpkgs": "@nixpkgs//:nixpkgs.nix"},
attribute_path = "gnutar",
)
load(
"//purescript:repositories.bzl",
"purescript_repositories",
)
purescript_repositories()
load(
"//purescript:nixpkgs.bzl",
"purescript_nixpkgs_packageset",
)
purescript_nixpkgs_packageset(
name = "psc-package",
nix_file = "//nix:purescript-packages.nix",
base_attribute_path = "purescriptPackages",
repositories = {"nixpkgs": "@nixpkgs//:nixpkgs.nix"},
)
load(
"@psc-package-imports//:packages.bzl",
"purescript_import_packages",
)
purescript_import_packages(
base_attribute_path = "purescriptPackages",
)
register_toolchains("//tests:purescript")