You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nix-build-my-crate-deps-0.1.0.drv-0
├── env-vars
├── nix-vendor
│ ├── hermit-abi-0.3.9
│ │ ├── ...
│ └── num_cpus-1.16.0 # has dependency to libc
│ ├── ...
└── simple-workspace
├── Cargo.lock
├── Cargo.toml
├── libc # is found by nix but is empty
│ ├── Cargo.toml
│ └── src
│ ├── bin # dummy main.rs
│ └── lib.rs # dummy
├── my-crate
│ ├── ...
├── my-other-crate
│ ├── ...
└── target
├── ...
Is there any way to fix the dependency chain? Excluding the crate from the workspace does not change anything, it still seems to show up as empty in the simple-workspace directory instead of the nix-vendor directory.
The text was updated successfully, but these errors were encountered:
pJunger
changed the title
patch.crates-io with local workspace crate fails[patch.crates-io] with local crate fails
Jun 19, 2024
Can you verify if this happens with the latest version of https://github.com/ipetkov/crane ? I'm guessing it works fine there, and it's that dream2nix currently just uses an old version of crane (v0.15.0 to be exact) and that's why this doesn't work.
Patching the
simple-workspace
example to replace a crates dependency with an local crate leads to problems when building the dependencies.Content of the build directory:
Is there any way to fix the dependency chain? Excluding the crate from the workspace does not change anything, it still seems to show up as empty in the
simple-workspace
directory instead of thenix-vendor
directory.The text was updated successfully, but these errors were encountered: