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 <atemu.main+nixpkgs@gmail.com>
This commit is contained in:
parent
f945939fd6
commit
72e550dbcc
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildPackages, callPackage, cargo-auditable, stdenv, runCommand }@prev:
|
{ lib, buildPackages, callPackage, callPackages, cargo-auditable, stdenv, runCommand }@prev:
|
||||||
|
|
||||||
{ rustc
|
{ rustc
|
||||||
, cargo
|
, cargo
|
||||||
|
@ -34,7 +34,7 @@ rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
# Hooks
|
# Hooks
|
||||||
inherit (callPackage ../../../build-support/rust/hooks {
|
inherit (callPackages ../../../build-support/rust/hooks {
|
||||||
inherit stdenv cargo rustc;
|
inherit stdenv cargo rustc;
|
||||||
}) cargoBuildHook cargoCheckHook cargoInstallHook cargoNextestHook cargoSetupHook maturinBuildHook bindgenHook;
|
}) cargoBuildHook cargoCheckHook cargoInstallHook cargoNextestHook cargoSetupHook maturinBuildHook bindgenHook;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue