nixpkgs/pkgs/os-specific/linux/libtracefs/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.3 KiB
Nix
Raw Normal View History

2022-02-26 23:32:47 +00:00
{ lib
, stdenv
, fetchgit
, pkg-config
, libtraceevent
, asciidoc
, xmlto
, docbook_xml_dtd_45
, docbook_xsl
, coreutils
, which
, valgrind
, sourceHighlight
}:
stdenv.mkDerivation rec {
pname = "libtracefs";
version = "1.6.4";
src = fetchgit {
url = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git";
rev = "libtracefs-${version}";
sha256 = "sha256-fWop0EMkoVulLBzU7q8x1IhMtdnEJ89wMz0cz964F6s=";
};
postPatch = ''
2022-02-26 23:32:47 +00:00
substituteInPlace scripts/utils.mk --replace /bin/pwd ${coreutils}/bin/pwd
patchShebangs check-manpages.sh
'';
2022-02-26 23:32:47 +00:00
outputs = [ "out" "dev" "devman" "doc" ];
enableParallelBuilding = true;
2022-02-26 23:32:47 +00:00
nativeBuildInputs = [ pkg-config asciidoc xmlto docbook_xml_dtd_45 docbook_xsl which valgrind sourceHighlight ];
buildInputs = [ libtraceevent ];
makeFlags = [
"prefix=${placeholder "out"}"
"doc" # build docs
];
installFlags = [
"pkgconfig_dir=${placeholder "out"}/lib/pkgconfig"
"install_doc"
];
meta = with lib; {
description = "Linux kernel trace file system library";
homepage = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/";
license = licenses.lgpl21Only;
platforms = platforms.linux;
maintainers = with maintainers; [ wentasah ];
};
}