2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchgit, asciidoc, docbook_xsl, libxslt }:
|
2021-03-11 13:12:34 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "trace-cmd";
|
2021-03-11 13:12:34 +01:00
|
|
|
version = "2.9.1";
|
2015-04-18 21:39:02 +02:00
|
|
|
|
2021-03-11 13:12:34 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/";
|
|
|
|
rev = "trace-cmd-v${version}";
|
|
|
|
sha256 = "19c63a0qmcppm1456qf4k6a0d1agcvpa6jnbzrdcyc520yax6khw";
|
|
|
|
};
|
2019-04-27 13:34:05 +02:00
|
|
|
|
|
|
|
patches = [ ./fix-Makefiles.patch ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ asciidoc libxslt ];
|
2015-04-18 21:39:02 +02:00
|
|
|
|
2019-04-27 13:34:05 +02:00
|
|
|
outputs = [ "out" "lib" "dev" "man" ];
|
|
|
|
|
|
|
|
MANPAGE_DOCBOOK_XSL="${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl";
|
2015-04-18 21:39:02 +02:00
|
|
|
|
2019-06-19 17:36:06 +02:00
|
|
|
dontConfigure = true;
|
2015-04-18 21:39:02 +02:00
|
|
|
|
2019-04-27 13:34:05 +02:00
|
|
|
buildPhase = "make trace-cmd libs doc";
|
|
|
|
|
2019-10-26 14:35:38 +02:00
|
|
|
installTargets = [ "install_cmd" "install_libs" "install_doc" ];
|
2019-04-27 13:34:05 +02:00
|
|
|
installFlags = [
|
|
|
|
"bindir=${placeholder "out"}/bin"
|
|
|
|
"man_dir=${placeholder "man"}/share/man"
|
|
|
|
"libdir=${placeholder "lib"}/lib"
|
2019-10-26 14:35:38 +02:00
|
|
|
"includedir=${placeholder "dev"}/include"
|
2020-11-12 22:22:18 +01:00
|
|
|
"BASH_COMPLETE_DIR=${placeholder "out"}/share/bash-completion/completions"
|
2019-04-27 13:34:05 +02:00
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-06-20 12:53:46 +02:00
|
|
|
description = "User-space tools for the Linux kernel ftrace subsystem";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://kernelshark.org/";
|
2019-04-27 13:34:05 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice basvandijk ];
|
2015-04-18 21:39:02 +02:00
|
|
|
};
|
|
|
|
}
|