depot/third_party/nixpkgs/pkgs/os-specific/linux/libtraceevent/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

33 lines
1 KiB
Nix

{ lib, stdenv, fetchgit, pkg-config, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl, meson, ninja, cunit }:
stdenv.mkDerivation rec {
pname = "libtraceevent";
version = "1.8.0";
src = fetchgit {
url = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git";
rev = "libtraceevent-${version}";
sha256 = "sha256-l1x9tiHKhfdetlnn9S/EfpcHDzZqiTOrdFhHQtOC6Do=";
};
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 ];
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 ];
};
}