From b4e4ffa5751cf042f4032a00d4aec482d8966a9c Mon Sep 17 00:00:00 2001 From: Michael Jenny Date: Thu, 12 Dec 2024 08:20:43 +0100 Subject: [PATCH] Update pkgs/build-support/rust/hooks/default.nix Co-authored-by: seth --- pkgs/build-support/rust/hooks/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/rust/hooks/default.nix b/pkgs/build-support/rust/hooks/default.nix index fd0455796b306..0aebc064e44c4 100644 --- a/pkgs/build-support/rust/hooks/default.nix +++ b/pkgs/build-support/rust/hooks/default.nix @@ -91,7 +91,7 @@ in ]; substitutions = { inherit (rust.envVars) rustTargetPlatformSpec setEnv; - pythonInterpreter = builtins.elemAt (builtins.match "([0-9]+\.[0-9]+)\.*" python3.version) 0; + pythonInterpreter = lib.versions.majorMinor pythonOnBuildForHost.version; }; } ./maturin-build-hook.sh) {};