Commit dd21919e authored by Michal Sojka's avatar Michal Sojka
Browse files

trace-cmd: Add updateScript

parent a3c0b3b2
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
{ lib, stdenv, fetchpatch, fetchzip, pkg-config, asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt, libtraceevent, libtracefs, zstd, sourceHighlight }:
{ lib, stdenv, fetchpatch, fetchzip, pkg-config, asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt, libtraceevent, libtracefs, zstd, sourceHighlight, gitUpdater }:
stdenv.mkDerivation rec {
  pname = "trace-cmd";
  version = "3.2";
@@ -61,6 +61,12 @@ stdenv.mkDerivation rec {
    "BASH_COMPLETE_DIR=${placeholder "out"}/share/bash-completion/completions"
  ];

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

  meta = with lib; {
    description = "User-space tools for the Linux kernel ftrace subsystem";
    mainProgram = "trace-cmd";