nix-community / crate2nix

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

Crate overides with IFD #355

Closed justryanw closed 3 months ago

justryanw commented 3 months ago

Is it possible to use crate overrides when using IFD inside of a flake?

justryanw commented 3 months ago

FIgured it out. For anyone that needs:

cargoNix = pkgs.callPackage (crate2nix.tools.${system}.generatedCargoNix {
  name = "rustnix";
  src = ./.;
}) {
  defaultCrateOverrides = pkgs.defaultCrateOverrides // {
    cratename: attrs {
      # Overrides
    }
  };
};