diff --git a/crate2nix/templates/nix/crate2nix/default.nix b/crate2nix/templates/nix/crate2nix/default.nix index 4eefda8c..477cc617 100644 --- a/crate2nix/templates/nix/crate2nix/default.nix +++ b/crate2nix/templates/nix/crate2nix/default.nix @@ -174,7 +174,7 @@ rec { buildRustCrateWithFeatures = { packageId , features ? rootFeatures - , crateOverrides ? defaultCrateOverrides + , crateOverrides ? null , buildRustCrateForPkgsFunc ? null , runTests ? false , testCrateFlags ? [ ] @@ -200,7 +200,7 @@ rec { then buildRustCrateForPkgsFunc else ( - if crateOverrides == pkgs.defaultCrateOverrides + if crateOverrides == null then buildRustCrateForPkgs else pkgs: (buildRustCrateForPkgs pkgs).override {