From 74ac950104fc037dc951b72d921d620cf046217f Mon Sep 17 00:00:00 2001 From: Mateusz Kubica Date: Sat, 4 Oct 2025 00:53:20 +0100 Subject: [PATCH] pythonPackages.nlopt: respect current python interpreter --- pkgs/development/python-modules/nlopt/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/nlopt/default.nix b/pkgs/development/python-modules/nlopt/default.nix index 55bfc2d2884c..b64d7992560c 100644 --- a/pkgs/development/python-modules/nlopt/default.nix +++ b/pkgs/development/python-modules/nlopt/default.nix @@ -1,5 +1,12 @@ { toPythonModule, pkgs, + python, }: -toPythonModule (pkgs.nlopt.override { withPython = true; }) +toPythonModule ( + pkgs.nlopt.override { + withPython = true; + python3 = python; + python3Packages = python.pkgs; + } +)