Commit 7de6d04e authored by Michal Sojka's avatar Michal Sojka
Browse files

libtracefs: Add patch to compile all documentation

parent bf0bf519
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
, ninja
, cunit
, gitUpdater
, fetchpatch
}:

stdenv.mkDerivation rec {
@@ -26,6 +27,14 @@ stdenv.mkDerivation rec {
    hash = "sha256-2UiEgY4mQRLpWah+2rVfPiiUYBSSzRAy5gOv4YELQFQ=";
  };

  patches = [
    (fetchpatch {
      name = "add-missing-documentation-to-meson-build.patch";
      url = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/patch/?id=4cbebed79b1fe933367e298ea7ddef694b9f98d0";
      hash = "sha256-tSaR0wpxrm50IyMgMoUCcHBB9r8lQQZZYGru6Znre50=";
    })
  ];

  postPatch = ''
    chmod +x samples/extract-example.sh
    patchShebangs --build check-manpages.sh samples/extract-example.sh Documentation/install-docs.sh.in