trace-cmd: Add updateScript

This commit is contained in:
Michal Sojka
2024-10-17 17:21:01 +02:00
parent a3c0b3b215
commit dd21919e9f
+7 -1
View File
@@ -1,4 +1,4 @@
{ 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";