Skip to content

Build package with local crates #651

Closed Answered by ipetkov
nezsha asked this question in Q&A
Discussion options

You must be logged in to vote

src = ./editor;

When using src = ./editor; this instructs Nix to only make the ./editor directory available for the derivation. Assuming other workspace crates are in different directories, you will need to change the src attribute to include them.

The quick-start-workspace example shows how this can be achieved with lib.fileset:

fileset = lib.fileset.unions [
./Cargo.toml
./Cargo.lock
./my-common
./my-workspace-hack
crate
];

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@dpc
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ipetkov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants