Skip to content

Commit d21d89c

Browse files
authored
Readme change (#4)
1 parent 6cfb6a1 commit d21d89c

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
# bazel_pkg_config
55

6-
Bazel rules for pkg-config tools with Bazel 8+ (Bzlmod) support and backward compatibility Bazel < 8 (WORKSPACE).
6+
Bazel rules for pkg-config tools with Bazel 8+ (Bzlmod) support and backward compatibility Bazel < 8 (WORKSPACE).
77
Forked from cherrry/bazel_pkg_config with Bazel 8+ specific modifications.
88

99
## Usage
@@ -54,16 +54,18 @@ cc_library(
5454
Add the following in your `WORKSPACE`:
5555

5656
```bzl
57-
http_archive(
57+
git_repository(
5858
name = "bazel_pkg_config",
59-
strip_prefix = "bazel_pkg_config-master",
60-
urls = ["https://github.com/cherrry/bazel_pkg_config/archive/master.zip"],
59+
remote = "https://github.com/Lmh-java/bazel_pkg_config.git",
60+
# Replace with the lastest commit hash
61+
commit = "e247fb3b4007e63bb5110808df6e2c57eb518f16",
6162
)
6263

63-
load("@bazel_pkg_config//:pkg_config.bzl", "pkg_config")
64+
load("@bazel_pkg_config//:pkg_config.bzl", "pkg_config_repository")
6465

65-
pkg_config(
66-
name = "library_to_load",
66+
pkg_config_repository(
67+
name = "target_name",
68+
pkg_name = "library_to_load"
6769
# See pkg_config.bzl for more available options.
6870
)
6971
```

0 commit comments

Comments
 (0)