External Dependencies at Build Time #4319
-
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You may make |
Beta Was this translation helpful? Give feedback.
-
If you have a build-time dependency that cannot be installed through Homebrew, you can add the dependency as a resource to your formula. A resource is a file or a directory that is downloaded or copied into the build directory before building the formula. In your case, you can add the Pico SDK as a resource to your formula, so that it is available during the build process. Here is an example of how you can do it: resource "pico-sdk" do def install
end test do In this example, the Pico SDK is added as a resource to the formula using the resource method. The stage block is used to download and extract the SDK into the build directory. The install method is then modified to pass the path to the SDK as a variable to the build command. You can replace the URL and SHA256 checksum of the Pico SDK with the ones that are appropriate for your use case. |
Beta Was this translation helpful? Give feedback.
You may make
pico-sdk
a resource. Seetelnet.rb
for an example, wherelibtelnet
is added as a resource and built in theinstall
method below.