1{ lib, stdenv, fetchgit, pkg-config, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl }:
2
3stdenv.mkDerivation rec {
4 pname = "libtraceevent";
5 version = "1.4.0";
6
7 src = fetchgit {
8 url = "git://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git";
9 rev = "libtraceevent-${version}";
10 sha256 = "1x36qsrcssjywjpwkgyp9hz6y878kivma9pz7zrhxdsrqv2d2zs1";
11 };
12
13 # Don't build and install html documentation
14 postPatch = ''
15 sed -i -e '/^all:/ s/html//' -e '/^install:/ s/install-html//' Documentation/Makefile
16 '';
17
18 outputs = [ "out" "dev" "devman" ];
19 enableParallelBuilding = true;
20 nativeBuildInputs = [ pkg-config asciidoc xmlto docbook_xml_dtd_45 docbook_xsl ];
21 makeFlags = [
22 "prefix=${placeholder "out"}"
23 "doc" # build docs
24 ];
25 installFlags = [
26 "pkgconfig_dir=${placeholder "out"}/lib/pkgconfig"
27 "doc-install"
28 ];
29
30 meta = with lib; {
31 description = "Linux kernel trace event library";
32 homepage = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/";
33 license = licenses.lgpl21Only;
34 platforms = platforms.linux;
35 maintainers = with maintainers; [ wentasah ];
36 };
37}