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
106 lines
2.0 KiB
Nix
106 lines
2.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
pkg-config,
|
|
asciidoc,
|
|
xmlto,
|
|
liburcu,
|
|
numactl,
|
|
python3,
|
|
testers,
|
|
nix-update-script,
|
|
}:
|
|
|
|
# NOTE:
|
|
# ./configure ...
|
|
# [...]
|
|
# LTTng-UST will be built with the following options:
|
|
#
|
|
# Java support (JNI): Disabled
|
|
# sdt.h integration: Disabled
|
|
# [...]
|
|
#
|
|
# Debian builds with std.h (systemtap).
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "lttng-ust";
|
|
version = "2.14.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lttng";
|
|
repo = "lttng-ust";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-9WZDjOGfflEc6BUUO3W70KeLcZnTaePkF8eg8Ns/lQc=";
|
|
};
|
|
|
|
outputs = [
|
|
"bin"
|
|
"out"
|
|
"dev"
|
|
"devdoc"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
asciidoc
|
|
xmlto
|
|
];
|
|
|
|
propagatedBuildInputs = [ liburcu ];
|
|
|
|
buildInputs = [
|
|
numactl
|
|
python3
|
|
];
|
|
|
|
postPatch = ''
|
|
# to build the manpages, xmlto uses xmllint which tries to fetch a dtd schema
|
|
# from the internet - just don't validate to work around this
|
|
substituteInPlace doc/man/Makefile.am \
|
|
--replace-fail '$(XMLTO)' '$(XMLTO) --skip-validation'
|
|
'';
|
|
|
|
preConfigure = ''
|
|
patchShebangs .
|
|
'';
|
|
|
|
configureFlags = [ "--disable-examples" ];
|
|
|
|
doCheck = true;
|
|
|
|
strictDeps = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru = {
|
|
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version-regex"
|
|
"v(.+)"
|
|
];
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "LTTng Userspace Tracer libraries";
|
|
mainProgram = "lttng-gen-tp";
|
|
homepage = "https://lttng.org/";
|
|
changelog = "https://github.com/lttng/lttng-ust/blob/v${finalAttrs.version}/ChangeLog";
|
|
license = with lib.licenses; [
|
|
lgpl21Only
|
|
gpl2Only
|
|
mit
|
|
];
|
|
platforms = lib.intersectLists lib.platforms.linux liburcu.meta.platforms;
|
|
pkgConfigModules = [
|
|
"lttng-ust-ctl"
|
|
"lttng-ust"
|
|
];
|
|
maintainers = [ lib.maintainers.bjornfor ];
|
|
};
|
|
})
|