Skip to content

Commit

Permalink
Add PathKit (#3417)
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch authored Dec 14, 2024
1 parent e46bc7f commit 12fb1cb
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/pathkit/1.0.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module(
name = "pathkit",
version = "1.0.1",
compatibility_level = 1,
)

bazel_dep(name = "rules_swift", version = "2.3.0")
10 changes: 10 additions & 0 deletions modules/pathkit/1.0.1/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,7 @@
+load("@rules_swift//swift:swift.bzl", "swift_library")
+
+swift_library(
+ name = "PathKit",
+ srcs = glob(["Sources/**/*.swift"]),
+ visibility = ["//visibility:public"],
+)
10 changes: 10 additions & 0 deletions modules/pathkit/1.0.1/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -0,0 +1,7 @@
+module(
+ name = "pathkit",
+ version = "1.0.1",
+ compatibility_level = 1,
+)
+
+bazel_dep(name = "rules_swift", version = "2.3.0")
9 changes: 9 additions & 0 deletions modules/pathkit/1.0.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tasks:
verify_targets:
name: Verify build targets
platform: macos
bazel: 8.x
build_targets:
- '@pathkit//:PathKit'
build_flags:
- "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1"
10 changes: 10 additions & 0 deletions modules/pathkit/1.0.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://github.com/kylef/PathKit/archive/refs/tags/1.0.1.tar.gz",
"integrity": "sha256-/Np4zfEsHGQwxnJzMz4GCpGVlRJUIw5STfd4QaAjXa4=",
"strip_prefix": "PathKit-1.0.1",
"patches": {
"module_dot_bazel.patch": "sha256-oDgV6bWDYkfAAahWF5CE+rfcIRisGuxSHNs1e5ngowQ=",
"add_build_file.patch": "sha256-Ot/O2CJnuNtyu4DSlfdN49UiNZFpArOp8yTAhEJK4Eo="
},
"patch_strip": 0
}
17 changes: 17 additions & 0 deletions modules/pathkit/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"homepage": "https://github.com/kylef/PathKit",
"maintainers": [
{
"email": "[email protected]",
"github": "ileitch",
"name": "Ian Leitch"
}
],
"repository": [
"github:kylef/PathKit"
],
"versions": [
"1.0.1"
],
"yanked_versions": {}
}

0 comments on commit 12fb1cb

Please sign in to comment.