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