nix-community / crate2nix

rebuild only changed crates in CI with crate2nix and nix
https://nix-community.github.io/crate2nix/
Apache License 2.0
352 stars 83 forks source link

propagatedBuildInputs are not propagated #181

Closed ghost closed 3 years ago

ghost commented 3 years ago

I have some bindings that link to shared objects when the binary is linked, so I need to propagate their dependencies.

callPackage ./Cargo.nix {
  defaultCrateOverrides = pkgs.defaultCrateOverrides // {
    libsensors-sys = attrs: {
      propagatedBuildInputs = [ lm_sensors ];
    };
  };
}

But as far as I can tell it only gets propagated to its direct dependents, not all the way up.

ghost commented 3 years ago

Nevermind, this might have been a misunderstanding on my side about how propagatedBuildInputs work.