2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchgit
|
|
|
|
, pkg-config
|
|
|
|
, libtraceevent
|
|
|
|
, asciidoc
|
|
|
|
, xmlto
|
|
|
|
, docbook_xml_dtd_45
|
|
|
|
, docbook_xsl
|
|
|
|
, coreutils
|
|
|
|
, valgrind
|
|
|
|
, sourceHighlight
|
2023-07-15 17:15:38 +00:00
|
|
|
, meson
|
|
|
|
, flex
|
|
|
|
, bison
|
|
|
|
, ninja
|
|
|
|
, cunit
|
2022-03-05 16:20:37 +00:00
|
|
|
}:
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libtracefs";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.7.0";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
2023-02-02 18:25:31 +00:00
|
|
|
url = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git";
|
2021-10-28 06:52:43 +00:00
|
|
|
rev = "libtracefs-${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-64eXFFdnZHHf4C3vbADtPuIMsfJ85VZ6t8A1gIc1CW0=";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2023-07-15 17:15:38 +00:00
|
|
|
chmod +x samples/extract-example.sh
|
|
|
|
patchShebangs --build check-manpages.sh samples/extract-example.sh Documentation/install-docs.sh.in
|
2021-10-28 06:52:43 +00:00
|
|
|
'';
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
outputs = [ "out" "dev" "devman" "doc" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
asciidoc
|
|
|
|
xmlto
|
|
|
|
docbook_xml_dtd_45
|
|
|
|
docbook_xsl
|
|
|
|
valgrind
|
|
|
|
sourceHighlight
|
|
|
|
flex
|
|
|
|
bison
|
2021-10-28 06:52:43 +00:00
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
buildInputs = [ libtraceevent ];
|
|
|
|
|
|
|
|
ninjaFlags = [ "all" "docs" ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [ cunit ];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Linux kernel trace file system library";
|
|
|
|
homepage = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/";
|
|
|
|
license = licenses.lgpl21Only;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ wentasah ];
|
|
|
|
};
|
|
|
|
}
|