1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-27 08:01:14 +00:00
nixpkgs/pkgs/os-specific/linux/trace-cmd/default.nix
Tuomas Tynkkynen 663c972385 trace-cmd: Fix build by adding docbook_xsl dependency
Gets rid of this build error:

make -C /tmp/nix-build-trace-cmd-2.5.3.drv-0/trace-cmd/Documentation all
      ASCIIDOC            trace-cmd-hist.1.xsl
*********************************
** No docbook.xsl is installed **
** Can't make man pages        **
*********************************
Makefile:59: recipe for target '/tmp/nix-build-trace-cmd-2.5.3.drv-0/trace-cmd/Documentation/trace-cmd-hist.1' failed
2015-04-23 06:32:54 +03:00

26 lines
866 B
Nix

{ stdenv, fetchgit, asciidoc, docbook_xsl, libxslt }:
stdenv.mkDerivation rec {
name = "trace-cmd-${version}";
version = "2.5.3";
src = fetchgit {
url = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git";
rev = "refs/tags/trace-cmd-v${version}";
sha256 = "32db3df07d0371c2b072029c6c86c4204be8cbbcb53840fa8c42dbf2e35c047b";
};
buildInputs = [ asciidoc libxslt ];
configurePhase = "true";
buildPhase = "make prefix=$out MANPAGE_DOCBOOK_XSL=${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl all doc";
installPhase = "make prefix=$out install install_doc";
meta = {
description = "user-space tools for the Linux kernel ftrace subsystem";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
};
}