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
75 lines
1.5 KiB
Nix
75 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchzip,
|
|
pkg-config,
|
|
libtraceevent,
|
|
asciidoc,
|
|
xmlto,
|
|
docbook_xml_dtd_45,
|
|
docbook_xsl,
|
|
sourceHighlight,
|
|
meson,
|
|
flex,
|
|
bison,
|
|
ninja,
|
|
gitUpdater,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libtracefs";
|
|
version = "1.8.2";
|
|
|
|
src = fetchzip {
|
|
url = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-libtracefs-${version}.tar.gz";
|
|
hash = "sha256-rpZUa34HMnDMSsGGwtOriEEHDfnW8emRSHZxzRkY3c4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
chmod +x samples/extract-example.sh
|
|
patchShebangs --build check-manpages.sh samples/extract-example.sh Documentation/install-docs.sh.in
|
|
'';
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"devman"
|
|
"doc"
|
|
];
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
asciidoc
|
|
xmlto
|
|
docbook_xml_dtd_45
|
|
docbook_xsl
|
|
sourceHighlight
|
|
flex
|
|
bison
|
|
];
|
|
buildInputs = [ libtraceevent ];
|
|
|
|
ninjaFlags = [
|
|
"all"
|
|
"docs"
|
|
];
|
|
|
|
doCheck = false; # needs root
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
# No nicer place to find latest release.
|
|
url = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git";
|
|
rev-prefix = "libtracefs-";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Linux kernel trace file system library";
|
|
mainProgram = "sqlhist";
|
|
homepage = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/";
|
|
license = licenses.lgpl21Only;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ wentasah ];
|
|
};
|
|
}
|