blob: 74825f37cc0c587ab727f9d7ba91422a6801134b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
{
lib,
stdenv,
fetchgit,
pkg-config,
asciidoc,
xmlto,
docbook_xml_dtd_45,
docbook_xsl,
meson,
ninja,
cunit,
gitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libtraceevent";
version = "1.9.0";
src = fetchgit {
url = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git";
tag = "libtraceevent-${finalAttrs.version}";
hash = "sha256-4KuF+UNMWxfxXYVlS0cBY5/p242UQ/NoRRVK+wmn04E=";
};
postPatch = ''
chmod +x Documentation/install-docs.sh.in
patchShebangs --build check-manpages.sh Documentation/install-docs.sh.in
'';
outputs = [
"out"
"dev"
"devman"
"doc"
];
nativeBuildInputs = [
meson
ninja
pkg-config
asciidoc
xmlto
docbook_xml_dtd_45
docbook_xsl
];
ninjaFlags = [
"all"
"docs"
];
doCheck = true;
checkInputs = [ cunit ];
passthru.updateScript = gitUpdater {
# No nicer place to find latest release.
url = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git";
rev-prefix = "libtraceevent-";
};
meta = {
description = "Linux kernel trace event library";
homepage = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/";
license = lib.licenses.lgpl21Only;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ wentasah ];
};
})
|