Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 39 lines 1.3 kB view raw
1{ lib, stdenv, fetchgit, pkg-config, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl, meson, ninja, cunit, gitUpdater }: 2 3stdenv.mkDerivation rec { 4 pname = "libtraceevent"; 5 version = "1.8.2"; 6 7 src = fetchgit { 8 url = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git"; 9 rev = "libtraceevent-${version}"; 10 hash = "sha256-2oa3pR8DOPaeHcoqcLX00ihx1lpXablnsf0IZR2sOm8="; 11 }; 12 13 postPatch = '' 14 chmod +x Documentation/install-docs.sh.in 15 patchShebangs --build check-manpages.sh Documentation/install-docs.sh.in 16 ''; 17 18 outputs = [ "out" "dev" "devman" "doc" ]; 19 nativeBuildInputs = [ meson ninja pkg-config asciidoc xmlto docbook_xml_dtd_45 docbook_xsl ]; 20 21 ninjaFlags = [ "all" "docs" ]; 22 23 doCheck = true; 24 checkInputs = [ cunit ]; 25 26 passthru.updateScript = gitUpdater { 27 # No nicer place to find latest release. 28 url = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git"; 29 rev-prefix = "libtraceevent-"; 30 }; 31 32 meta = with lib; { 33 description = "Linux kernel trace event library"; 34 homepage = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/"; 35 license = licenses.lgpl21Only; 36 platforms = platforms.linux; 37 maintainers = with maintainers; [ wentasah ]; 38 }; 39}