diff options
Diffstat (limited to 'pkgs/development/python-modules/lttng/default.nix')
-rw-r--r-- | pkgs/development/python-modules/lttng/default.nix | 58 |
1 files changed, 34 insertions, 24 deletions
diff --git a/pkgs/development/python-modules/lttng/default.nix b/pkgs/development/python-modules/lttng/default.nix index 9cdb580fc474..521def0abf77 100644 --- a/pkgs/development/python-modules/lttng/default.nix +++ b/pkgs/development/python-modules/lttng/default.nix @@ -1,29 +1,39 @@ -{ toPythonModule -, python -, lttng-tools -, swig2 +{ + toPythonModule, + python, + lttng-tools, + swig, }: -toPythonModule (lttng-tools.overrideAttrs ({ nativeBuildInputs ? [ ], configureFlags ? [ ], ... }: { - pname = "lttng"; +toPythonModule ( + lttng-tools.overrideAttrs ( + { + nativeBuildInputs ? [ ], + configureFlags ? [ ], + ... + }: + { + pname = "lttng"; - nativeBuildInputs = nativeBuildInputs ++ [ swig2 ]; + nativeBuildInputs = nativeBuildInputs ++ [ swig ]; - 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" - ]; + 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"; -})) + # 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"; + } + ) +) |