Skip to content

How to handle bindgen ${name}-sys style crates? #200

Answered by ipetkov
Avi-D-coder asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Avi-D-coder! The problem is with symlinking whisperCpp.src because the build script tries to cd into that directory before invoking make. But with the symlink it ends up in the Nix store which is read only.

You have a couple of options:

  • Don't symlink the source but do a regular cp -r. You could probably get away with symlinking the regular files but the root directory will have to be writable (without changing the build.rs script that is)
  • skip the source filtering completely, though any changes to the flake file (for example) will cause rebuilds
  • write a source filter which includes the whisperCpp source. This could be a composition filter or you could go with something simpler like l…

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ipetkov
Comment options

You must be logged in to vote
12 replies
@ipetkov
Comment options

@Avi-D-coder
Comment options

@ipetkov
Comment options

@Avi-D-coder
Comment options

@ipetkov
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants