How to use external packages like opencv with some binary? #3153
Unanswered
bhavitsharma
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Npm comes with a non-hermetic build system, gyp. You'd have to override that with cc_binary or rules_foreign_cc or similar. I suspect you don't even want to run npm install, just unpack the tarball yourself. The npm_import rule may be what you want for that. See e2e/core for an example. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want the builds to reproducible and hermetic, so is there any way to specify "opencv's system level libraries" as a dependency of "nodejs_binary"? The npm package "opencv4nodejs" assumes that opencv is present on the system.
Beta Was this translation helpful? Give feedback.
All reactions