How to handle bindgen ${name}-sys style crates? #200
-
I'm trying to use The error is reproduced directly on
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
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:
Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Thanks, the @yusdacra said:
Here is the code: https://github.com/nix-community/dream2nix/blob/39c64b454e5f70e1a7b3c69dc595ee71f2d224e4/src/subsystems/rust/builders/crane/default.nix#L47 This feels like it should be the default given how common build.rs, and bindgen usage is. |
Beta Was this translation helpful? Give feedback.
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:
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)l…