Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions pkgs/development/python-modules/lttng/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ 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"
];

# 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";
}))
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6695,6 +6695,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 { };
Expand Down