Commit 5b0b0c79 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

libtraceevent: 1.8.0 -> 1.8.1

While at it added a trivial updater.
parent 01962add
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
{ lib, stdenv, fetchgit, pkg-config, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl, meson, ninja, cunit }:
{ lib, stdenv, fetchgit, pkg-config, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl, meson, ninja, cunit, gitUpdater }:

stdenv.mkDerivation rec {
  pname = "libtraceevent";
  version = "1.8.0";
  version = "1.8.1";

  src = fetchgit {
    url = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git";
    rev = "libtraceevent-${version}";
    sha256 = "sha256-l1x9tiHKhfdetlnn9S/EfpcHDzZqiTOrdFhHQtOC6Do=";
    hash = "sha256-zib2IrgtaDGDEO/2Kp9ytHuceW/7slRPDUClYgqemOE=";
  };

  postPatch = ''
@@ -23,6 +23,12 @@ stdenv.mkDerivation rec {
  doCheck = true;
  checkInputs = [ cunit ];

  passthru.updateScript = gitUpdater {
    # No nicer place to find latest release.
    url = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git";
    rev-prefix = "libtraceevent-";
  };

  meta = with lib; {
    description = "Linux kernel trace event library";
    homepage    = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/";