Commit 9d897b26 authored by hacker1024's avatar hacker1024 Committed by Bjørn Forsman
Browse files

python3Packages.lttng: init at 2.13.11

A new attribute overriding lttng-tools is created, rather than enabling
Python support in lttng-tools itself, in order to reduce the closure
size and leave lttng-tools Python-version-agnostic.
parent 2e6d175e
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
{ toPythonModule
, python
, lttng-tools
, swig2
}:

toPythonModule (lttng-tools.overrideAttrs ({ nativeBuildInputs ? [ ], configureFlags ? [ ], ... }: {
  pname = "lttng";

  nativeBuildInputs = nativeBuildInputs ++ [ swig2 ];

  configureFlags = configureFlags ++ [
    "--enable-python-bindings"
    # "--disable-bin-lttng" # The Python bindings depend on liblttng-ctl, which is only built when the binary is enabled.
    "--disable-bin-lttng-consumerd"
    "--disable-bin-lttng-crash"
    "--disable-bin-lttng-relayd"
    "--disable-bin-lttng-sessiond"
    # "--disable-extras" # The Python bindings are an extra.
    "--disable-man-pages"
  ];

  PYTHON = "${python.pythonOnBuildForHost}/bin/python";
  PYTHON_CONFIG = "${python.pythonOnBuildForHost}/bin/python-config";
}))
+2 −0
Original line number Diff line number Diff line
@@ -6713,6 +6713,8 @@ self: super: with self; {
  ltpycld2 = callPackage ../development/python-modules/ltpycld2 { };
  lttng = callPackage ../development/python-modules/lttng { };
  luddite = callPackage ../development/python-modules/luddite { };
  luftdaten = callPackage ../development/python-modules/luftdaten { };