depot/third_party/nixpkgs/pkgs/os-specific/linux/trace-cmd/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

36 lines
1 KiB
Nix

{ lib, stdenv, fetchgit, asciidoc, docbook_xsl, libxslt }:
stdenv.mkDerivation {
pname = "trace-cmd";
version = "2.9-dev";
src = fetchgit (import ./src.nix);
patches = [ ./fix-Makefiles.patch ];
nativeBuildInputs = [ asciidoc libxslt ];
outputs = [ "out" "lib" "dev" "man" ];
MANPAGE_DOCBOOK_XSL="${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl";
dontConfigure = true;
buildPhase = "make trace-cmd libs doc";
installTargets = [ "install_cmd" "install_libs" "install_doc" ];
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"
];
meta = with lib; {
description = "User-space tools for the Linux kernel ftrace subsystem";
homepage = "https://kernelshark.org/";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ thoughtpolice basvandijk ];
};
}