Open eryngion opened 9 months ago
Various hooks that are put in nativeBuildInputs of a python package by mkPythonDerivation/buildPythonPackage don't get shifted to buildPlatform.
nativeBuildInputs
mkPythonDerivation
buildPythonPackage
Steps to reproduce the behavior:
nix-repl> u = import <nixos-unstable> {system = "x86_64-linux"; crossSystem="aarch64-linux";} nix-repl> testPythonPackage = u.__splicedPackages.python311Packages.buildPythonPackage {name = "ttt";} nix-repl> python = builtins.elemAt testPythonPackage.nativeBuildInputs 0 nix-repl> python.stdenv.hostPlatform.system "x86_64-linux" nix-repl> hook = builtins.elemAt testPythonPackage.nativeBuildInputs 1 nix-repl> hook.stdenv.hostPlatform.system "aarch64-linux"
hook.stdenv.hostPlatform.system should also be "x86_64-linux"
hook.stdenv.hostPlatform.system
Should be fixed by #228139
Describe the bug
Various hooks that are put in
nativeBuildInputs
of a python package bymkPythonDerivation
/buildPythonPackage
don't get shifted to buildPlatform.Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
hook.stdenv.hostPlatform.system
should also be "x86_64-linux"