2022-02-26 23:32:47 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchgit
|
|
|
|
, pkg-config
|
|
|
|
, libtraceevent
|
|
|
|
, asciidoc
|
|
|
|
, xmlto
|
|
|
|
, docbook_xml_dtd_45
|
|
|
|
, docbook_xsl
|
|
|
|
, coreutils
|
|
|
|
, which
|
|
|
|
, valgrind
|
|
|
|
, sourceHighlight
|
|
|
|
}:
|
2021-09-12 14:56:45 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libtracefs";
|
2022-12-26 17:08:00 +00:00
|
|
|
version = "1.6.4";
|
2021-09-12 14:56:45 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
2023-01-27 20:10:36 +00:00
|
|
|
url = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git";
|
2021-09-12 14:56:45 +00:00
|
|
|
rev = "libtracefs-${version}";
|
2022-12-26 17:08:00 +00:00
|
|
|
sha256 = "sha256-fWop0EMkoVulLBzU7q8x1IhMtdnEJ89wMz0cz964F6s=";
|
2021-09-12 14:56:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2022-02-26 23:32:47 +00:00
|
|
|
substituteInPlace scripts/utils.mk --replace /bin/pwd ${coreutils}/bin/pwd
|
|
|
|
patchShebangs check-manpages.sh
|
2021-09-12 14:56:45 +00:00
|
|
|
'';
|
|
|
|
|
2022-02-26 23:32:47 +00:00
|
|
|
outputs = [ "out" "dev" "devman" "doc" ];
|
2021-09-12 14:56:45 +00:00
|
|
|
enableParallelBuilding = true;
|
2022-02-26 23:32:47 +00:00
|
|
|
nativeBuildInputs = [ pkg-config asciidoc xmlto docbook_xml_dtd_45 docbook_xsl which valgrind sourceHighlight ];
|
2021-09-12 14:56:45 +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 ];
|
|
|
|
};
|
|
|
|
}
|