at 22.05-pre 38 lines 1.2 kB view raw
1{ lib, stdenv, fetchgit, pkg-config, libtraceevent, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl }: 2 3stdenv.mkDerivation rec { 4 pname = "libtracefs"; 5 version = "1.2.5"; 6 7 src = fetchgit { 8 url = "git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git"; 9 rev = "libtracefs-${version}"; 10 sha256 = "1rva9ysspf1wqd0zf52qwgpaasrn7jcbns4dwldc59ksk0n93qdb"; 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 buildInputs = [ libtraceevent ]; 22 makeFlags = [ 23 "prefix=${placeholder "out"}" 24 "doc" # build docs 25 ]; 26 installFlags = [ 27 "pkgconfig_dir=${placeholder "out"}/lib/pkgconfig" 28 "install_doc" 29 ]; 30 31 meta = with lib; { 32 description = "Linux kernel trace file system library"; 33 homepage = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/"; 34 license = licenses.lgpl21Only; 35 platforms = platforms.linux; 36 maintainers = with maintainers; [ wentasah ]; 37 }; 38}