diff options
author | Michal Sojka <michal.sojka@cvut.cz> | 2021-09-12 16:56:45 +0200 |
---|---|---|
committer | Michal Sojka <michal.sojka@cvut.cz> | 2021-10-23 22:12:45 +0200 |
commit | b068cd2e1479a9ff4e3567e11edbf06b2e1ea6c5 (patch) | |
tree | 7c5663c08ed24eaba1ed38c0809b09c1fed2d490 /pkgs/os-specific/linux/libtracefs | |
parent | 12aa20319323106838f45a2efb715af9b98137f0 (diff) | |
download | nixpkgs-b068cd2e1479a9ff4e3567e11edbf06b2e1ea6c5.tar nixpkgs-b068cd2e1479a9ff4e3567e11edbf06b2e1ea6c5.tar.gz nixpkgs-b068cd2e1479a9ff4e3567e11edbf06b2e1ea6c5.tar.bz2 nixpkgs-b068cd2e1479a9ff4e3567e11edbf06b2e1ea6c5.tar.lz nixpkgs-b068cd2e1479a9ff4e3567e11edbf06b2e1ea6c5.tar.xz nixpkgs-b068cd2e1479a9ff4e3567e11edbf06b2e1ea6c5.tar.zst nixpkgs-b068cd2e1479a9ff4e3567e11edbf06b2e1ea6c5.zip |
libtracefs: init at 1.2.5
This library is needed for recent versions of kernelshark.
Diffstat (limited to 'pkgs/os-specific/linux/libtracefs')
-rw-r--r-- | pkgs/os-specific/linux/libtracefs/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/libtracefs/default.nix b/pkgs/os-specific/linux/libtracefs/default.nix new file mode 100644 index 00000000000..f3f1a393973 --- /dev/null +++ b/pkgs/os-specific/linux/libtracefs/default.nix @@ -0,0 +1,38 @@ +{ lib, stdenv, fetchgit, pkg-config, libtraceevent, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl }: + +stdenv.mkDerivation rec { + pname = "libtracefs"; + version = "1.2.5"; + + src = fetchgit { + url = "git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git"; + rev = "libtracefs-${version}"; + sha256 = "1rva9ysspf1wqd0zf52qwgpaasrn7jcbns4dwldc59ksk0n93qdb"; + }; + + # Don't build and install html documentation + postPatch = '' + sed -i -e '/^all:/ s/html//' -e '/^install:/ s/install-html//' Documentation/Makefile + ''; + + outputs = [ "out" "dev" "devman" ]; + enableParallelBuilding = true; + nativeBuildInputs = [ pkg-config asciidoc xmlto docbook_xml_dtd_45 docbook_xsl ]; + 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 ]; + }; +} |