Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
{
|
|
toPythonModule,
|
|
python,
|
|
lttng-tools,
|
|
swig,
|
|
}:
|
|
|
|
toPythonModule (
|
|
lttng-tools.overrideAttrs (
|
|
{
|
|
nativeBuildInputs ? [ ],
|
|
configureFlags ? [ ],
|
|
...
|
|
}:
|
|
{
|
|
pname = "lttng";
|
|
|
|
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"
|
|
];
|
|
|
|
# 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";
|
|
}
|
|
)
|
|
)
|