2021-10-28 06:52:43 +00:00
|
|
|
{ lib, stdenv, fetchgit, pkg-config, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libtraceevent";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "1.5.0";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git";
|
|
|
|
rev = "libtraceevent-${version}";
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "sha256-ysdsuJ9MvmNY0/XSV+aO7Gh8buWed25DQhBE/5HIASU=";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Don't build and install html documentation
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -e '/^all:/ s/html//' -e '/^install:/ s/install-html//' Documentation/Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devman" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
nativeBuildInputs = [ pkg-config asciidoc xmlto docbook_xml_dtd_45 docbook_xsl ];
|
|
|
|
makeFlags = [
|
|
|
|
"prefix=${placeholder "out"}"
|
|
|
|
"doc" # build docs
|
|
|
|
];
|
|
|
|
installFlags = [
|
|
|
|
"pkgconfig_dir=${placeholder "out"}/lib/pkgconfig"
|
|
|
|
"doc-install"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Linux kernel trace event library";
|
|
|
|
homepage = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/";
|
|
|
|
license = licenses.lgpl21Only;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ wentasah ];
|
|
|
|
};
|
|
|
|
}
|