2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchgit
|
|
|
|
, pkg-config
|
|
|
|
, libtraceevent
|
|
|
|
, asciidoc
|
|
|
|
, xmlto
|
|
|
|
, docbook_xml_dtd_45
|
|
|
|
, docbook_xsl
|
|
|
|
, coreutils
|
|
|
|
, which
|
|
|
|
, valgrind
|
|
|
|
, sourceHighlight
|
|
|
|
}:
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libtracefs";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.6.4";
|
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-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-fWop0EMkoVulLBzU7q8x1IhMtdnEJ89wMz0cz964F6s=";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2022-03-05 16:20:37 +00:00
|
|
|
substituteInPlace scripts/utils.mk --replace /bin/pwd ${coreutils}/bin/pwd
|
|
|
|
patchShebangs check-manpages.sh
|
2021-10-28 06:52:43 +00:00
|
|
|
'';
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
outputs = [ "out" "dev" "devman" "doc" ];
|
2021-10-28 06:52:43 +00:00
|
|
|
enableParallelBuilding = true;
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [ pkg-config asciidoc xmlto docbook_xml_dtd_45 docbook_xsl which valgrind sourceHighlight ];
|
2021-10-28 06:52:43 +00:00
|
|
|
buildInputs = [ libtraceevent ];
|
|
|
|
makeFlags = [
|
|
|
|
"prefix=${placeholder "out"}"
|
|
|
|
"doc" # build docs
|
|
|
|
];
|
|
|
|
installFlags = [
|
|
|
|
"pkgconfig_dir=${placeholder "out"}/lib/pkgconfig"
|
|
|
|
"install_doc"
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|