maturinBuildHook: add rustc to deps
maturin 0.10.5 uses rustc -vV to find the host:
https://github.com/PyO3/maturin/commit/e886c85f5a422111f7447541fd896228f6d403f1
We now need to make rustc visible to the hook for maturin to work
properly.
commit11307c1d474523c3a901fc7d9d7de52bf93d4671
authorDaniël de Kok <me@danieldk.eu>
dateFri 21 May 2021, 07:03 (5 years ago)
parentaef8140
pkgs/build-support/rust/hooks/default.nix+2−1
@@ -6,6 +6,7 @@
66, makeSetupHook
77, maturin
88, rust
9+, rustc
910, stdenv
1011, target ? rust.toRustTargetSpec stdenv.hostPlatform
1112}:
@@ -85,7 +86,7 @@ in {
8586 maturinBuildHook = callPackage ({ }:
8687 makeSetupHook {
8788 name = "maturin-build-hook.sh";
88− deps = [ cargo maturin ];
89+ deps = [ cargo maturin rustc ];
8990 substitutions = {
9091 inherit ccForBuild ccForHost cxxForBuild cxxForHost
9192 rustBuildPlatform rustTargetPlatform rustTargetPlatformSpec;
pkgs/development/compilers/rust/make-rust-platform.nix+1−1
@@ -26,6 +26,6 @@ rec {
2626
2727 # Hooks
2828 inherit (callPackage ../../../build-support/rust/hooks {
29− inherit cargo;
29+ inherit cargo rustc;
3030 }) cargoBuildHook cargoCheckHook cargoInstallHook cargoSetupHook maturinBuildHook;
3131}