From ac6c0ae75d205f037eabea4c096ddf1bf1eb0b6e Mon Sep 17 00:00:00 2001 From: hacker1024 Date: Mon, 12 Feb 2024 13:10:10 +1100 Subject: [PATCH] python3Packages.lttng: Explain use of PYTHON environment variable --- pkgs/development/python-modules/lttng/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/lttng/default.nix b/pkgs/development/python-modules/lttng/default.nix index b05de1cb9b8e..9cdb580fc474 100644 --- a/pkgs/development/python-modules/lttng/default.nix +++ b/pkgs/development/python-modules/lttng/default.nix @@ -20,6 +20,10 @@ toPythonModule (lttng-tools.overrideAttrs ({ nativeBuildInputs ? [ ], configureF "--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"; }))