python3.hooks: Dont completely overwrite passthru when creating setup hook

This commit is contained in:
adisbladis 2023-12-04 15:30:17 +13:00
parent 48a49f76d7
commit e23b901321

View File

@ -8,7 +8,9 @@ let
pythonCheckInterpreter = python.interpreter;
setuppy = ../run_setup.py;
in {
makePythonHook = args: pkgs.makeSetupHook ({passthru.provides.setupHook = true; } // args);
makePythonHook = let
defaultArgs = { passthru.provides.setupHook = true; };
in args: pkgs.makeSetupHook (lib.recursiveUpdate defaultArgs args);
condaInstallHook = callPackage ({ makePythonHook, gnutar, lbzip2 }:
makePythonHook {