I know my crate doesn't build because of system dependencies in the rust dependency for my project.
It does build if I install those system dependencies, that is:
nix-shell -p alsa-lib pkg-config -c "cargo build"
succeeds, but cargo build itself doesn't.
So now I'd like to build with crane. But adding buildInputs = [alsa-lib pkg-config] to the arguments to buildDepsOnly doesn't do the trick. I think because it only overrides deps in the toplevel built derivation.
I know my crate doesn't build because of system dependencies in the rust dependency for my project.
It does build if I install those system dependencies, that is:
succeeds, but
cargo build
itself doesn't.So now I'd like to build with crane. But adding
buildInputs = [alsa-lib pkg-config]
to the arguments tobuildDepsOnly
doesn't do the trick. I think because it only overrides deps in the toplevel built derivation.