nixpkgs/pkgs/os-specific/linux/trace-cmd/default.nix

37 lines
1.0 KiB
Nix
Raw Normal View History

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