Unverified Commit bf81d47a authored by Stefan Frijters's avatar Stefan Frijters
Browse files

python3Packages.lttng: move env vars into env for structuredAttrs

parent 6dad0a07
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ toPythonModule (
    {
      nativeBuildInputs ? [ ],
      configureFlags ? [ ],
      env ? { },
      ...
    }:
    {
@@ -28,12 +29,14 @@ toPythonModule (
        "--disable-man-pages"
      ];

      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";
      };
    }
  )
)