From bf81d47a6780a83d09669b8599fb6866d5d81806 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Thu, 19 Feb 2026 22:38:13 +0100 Subject: [PATCH] python3Packages.lttng: move env vars into env for structuredAttrs --- pkgs/development/python-modules/lttng/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/lttng/default.nix b/pkgs/development/python-modules/lttng/default.nix index 521def0abf77..e5f9d4fb56f2 100644 --- a/pkgs/development/python-modules/lttng/default.nix +++ b/pkgs/development/python-modules/lttng/default.nix @@ -10,6 +10,7 @@ toPythonModule ( { nativeBuildInputs ? [ ], configureFlags ? [ ], + env ? { }, ... }: { @@ -28,12 +29,14 @@ toPythonModule ( "--disable-man-pages" ]; - # Nix treats nativeBuildInputs specially for cross-compilation, but in this - # case, cross-compilation is accounted for explicitly. Using the variables - # ensures that the platform setup isn't messed with further. It also allows - # regular Python to be added in the future if it is ever needed. - PYTHON = "${python.pythonOnBuildForHost}/bin/python"; - PYTHON_CONFIG = "${python.pythonOnBuildForHost}/bin/python-config"; + env = env // { + # Nix treats nativeBuildInputs specially for cross-compilation, but in this + # case, cross-compilation is accounted for explicitly. Using the variables + # ensures that the platform setup isn't messed with further. It also allows + # regular Python to be added in the future if it is ever needed. + PYTHON = "${python.pythonOnBuildForHost}/bin/python"; + PYTHON_CONFIG = "${python.pythonOnBuildForHost}/bin/python-config"; + }; } ) )