forked from cgrindel/rules_spm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
54 lines (41 loc) · 1.2 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
workspace(name = "simple_with_dev_dir_example")
local_repository(
name = "cgrindel_rules_spm",
path = "../..",
)
load(
"@cgrindel_rules_spm//spm:deps.bzl",
"spm_rules_dependencies",
)
spm_rules_dependencies()
load("@cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies")
bazel_starlib_dependencies()
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
load(
"@build_bazel_rules_swift//swift:repositories.bzl",
"swift_rules_dependencies",
)
swift_rules_dependencies()
load(
"@build_bazel_rules_swift//swift:extras.bzl",
"swift_rules_extra_dependencies",
)
swift_rules_extra_dependencies()
load("@cgrindel_rules_spm//spm:defs.bzl", "spm_pkg", "spm_repositories")
spm_repositories(
name = "swift_pkgs",
dependencies = [
spm_pkg(
"https://github.com/apple/swift-log.git",
exact_version = "1.4.2",
products = ["Logging"],
),
],
env = {
# If you are testing this locally, set this value to a valid Xcode
# path. This value is valid for the Github action runner host for
# macos-11.
"DEVELOPER_DIR": "/Applications/Xcode_12.5.1.app",
},
)