python3Packages.lttng: move env vars into env for structuredAttrs

This commit is contained in:
Stefan Frijters
2026-02-19 22:38:13 +01:00
parent 6dad0a0790
commit bf81d47a67
@@ -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";
};
}
)
)