Open fogti opened 3 years ago
alternative: allow specifying a map from "links" defined in Cargo.toml
files to nixpkgs
dependencies.
I think it is nicer to add native dependencies (at least of widely-used crates) to the default crate overrides. Then everyone benefits from them across all projects.
Ah ok.
e.g. when I have a
-sys
crate which links against C stuff usingbuild.rs
, and could reuse already installed stuff, it would be cool if I could declare a dependency inCargo.toml
(in thepackage.metadata
section, e.g.[package.metadata.crate2nix]
), andcrate2nix
should then (when giving a corresponding command line flag, e.g. should be opt-in) scan the whole dependency chain and add the appropriate dependencies.