python3Packages.lttng: move env vars into env for structuredAttrs
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user