From 72e550dbcc437cef869a0c9bcaf79485b73b9e1e Mon Sep 17 00:00:00 2001 From: Diogo Correia Date: Mon, 26 Feb 2024 10:52:06 +0000 Subject: [PATCH] rustPlatform: fix `override` on hooks Previously, trying to use `.override {}` on one of the hooks, specifically `bindgenHook` would yield in an error. By replacing `callPackage` with `callPackages`, this error is fixed and the overrides are propagated to the hooks. Co-Authored-By: Atemu --- pkgs/development/compilers/rust/make-rust-platform.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/rust/make-rust-platform.nix b/pkgs/development/compilers/rust/make-rust-platform.nix index e22cb6d594af..6ed724aae821 100644 --- a/pkgs/development/compilers/rust/make-rust-platform.nix +++ b/pkgs/development/compilers/rust/make-rust-platform.nix @@ -1,4 +1,4 @@ -{ lib, buildPackages, callPackage, cargo-auditable, stdenv, runCommand }@prev: +{ lib, buildPackages, callPackage, callPackages, cargo-auditable, stdenv, runCommand }@prev: { rustc , cargo @@ -34,7 +34,7 @@ rec { }; # Hooks - inherit (callPackage ../../../build-support/rust/hooks { + inherit (callPackages ../../../build-support/rust/hooks { inherit stdenv cargo rustc; }) cargoBuildHook cargoCheckHook cargoInstallHook cargoNextestHook cargoSetupHook maturinBuildHook bindgenHook; }