nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchgit, asciidoc, docbook_xsl, libxslt }:
2stdenv.mkDerivation {
3 pname = "trace-cmd";
4 version = "2.9-dev";
5
6 src = fetchgit (import ./src.nix);
7
8 patches = [ ./fix-Makefiles.patch ];
9
10 nativeBuildInputs = [ asciidoc libxslt ];
11
12 outputs = [ "out" "lib" "dev" "man" ];
13
14 MANPAGE_DOCBOOK_XSL="${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl";
15
16 dontConfigure = true;
17
18 buildPhase = "make trace-cmd libs doc";
19
20 installTargets = [ "install_cmd" "install_libs" "install_doc" ];
21 installFlags = [
22 "bindir=${placeholder "out"}/bin"
23 "man_dir=${placeholder "man"}/share/man"
24 "libdir=${placeholder "lib"}/lib"
25 "includedir=${placeholder "dev"}/include"
26 "BASH_COMPLETE_DIR=${placeholder "out"}/etc/bash_completion.d"
27 ];
28
29 meta = with stdenv.lib; {
30 description = "User-space tools for the Linux kernel ftrace subsystem";
31 homepage = "https://kernelshark.org/";
32 license = licenses.gpl2;
33 platforms = platforms.linux;
34 maintainers = with maintainers; [ thoughtpolice basvandijk ];
35 };
36}