mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ lib, stdenv, fetchgit, pkg-config, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl, coreutils }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libtraceevent";
|
|
version = "1.6.2";
|
|
|
|
src = fetchgit {
|
|
url = "git://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git";
|
|
rev = "libtraceevent-${version}";
|
|
sha256 = "sha256-iLy2rEKn0UJguRcY/W8RvUq7uX+snQojb/cXOmMsjwc=";
|
|
};
|
|
|
|
# Don't build and install html documentation
|
|
postPatch = ''
|
|
sed -i -e '/^all:/ s/html//' -e '/^install:/ s/install-html//' Documentation/Makefile
|
|
substituteInPlace scripts/utils.mk --replace /bin/pwd ${coreutils}/bin/pwd
|
|
'';
|
|
|
|
outputs = [ "out" "dev" "devman" ];
|
|
enableParallelBuilding = true;
|
|
nativeBuildInputs = [ pkg-config asciidoc xmlto docbook_xml_dtd_45 docbook_xsl ];
|
|
makeFlags = [
|
|
"prefix=${placeholder "out"}"
|
|
"doc" # build docs
|
|
];
|
|
installFlags = [
|
|
"pkgconfig_dir=${placeholder "out"}/lib/pkgconfig"
|
|
"doc-install"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Linux kernel trace event library";
|
|
homepage = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/";
|
|
license = licenses.lgpl21Only;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ wentasah ];
|
|
};
|
|
}
|