2015-04-23 04:30:01 +01:00
|
|
|
{ stdenv, fetchgit, asciidoc, docbook_xsl, libxslt }:
|
2019-07-27 19:19:08 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "trace-cmd";
|
2019-07-27 19:19:08 +01:00
|
|
|
version = "2.8.3";
|
2015-04-18 20:39:02 +01:00
|
|
|
|
2019-07-27 19:19:08 +01:00
|
|
|
src = fetchgit (import ./src.nix);
|
2019-04-27 12:34:05 +01:00
|
|
|
|
|
|
|
patches = [ ./fix-Makefiles.patch ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ asciidoc libxslt ];
|
2015-04-18 20:39:02 +01:00
|
|
|
|
2019-04-27 12:34:05 +01:00
|
|
|
outputs = [ "out" "lib" "dev" "man" ];
|
|
|
|
|
|
|
|
MANPAGE_DOCBOOK_XSL="${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl";
|
2015-04-18 20:39:02 +01:00
|
|
|
|
2019-06-19 16:36:06 +01:00
|
|
|
dontConfigure = true;
|
2015-04-18 20:39:02 +01:00
|
|
|
|
2019-04-27 12:34:05 +01:00
|
|
|
buildPhase = "make trace-cmd libs doc";
|
|
|
|
|
|
|
|
installTargets = [ "install_cmd" "install_libs" "install_man" ];
|
|
|
|
installFlags = [
|
|
|
|
"bindir=${placeholder "out"}/bin"
|
|
|
|
"man_dir=${placeholder "man"}/share/man"
|
|
|
|
"libdir=${placeholder "lib"}/lib"
|
|
|
|
"includedir=${placeholder "dev"}/include/trace-cmd"
|
|
|
|
"BASH_COMPLETE_DIR=${placeholder "out"}/etc/bash_completion.d"
|
|
|
|
];
|
|
|
|
|
2019-07-25 20:30:46 +01:00
|
|
|
postInstall = ''
|
|
|
|
mv $dev/include/trace-cmd/traceevent $dev/include/traceevent
|
|
|
|
'';
|
|
|
|
|
2019-04-27 12:34:05 +01:00
|
|
|
meta = with stdenv.lib; {
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "User-space tools for the Linux kernel ftrace subsystem";
|
2019-04-27 12:34:05 +01:00
|
|
|
homepage = http://kernelshark.org/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice basvandijk ];
|
2015-04-18 20:39:02 +01:00
|
|
|
};
|
|
|
|
}
|