Files
nixpkgs/pkgs/by-name/li/libtraceevent/package.nix
Michal Sojka 52c949ec4d libtraceevent: fix update-bot error
The udpate-bot complains about the used version number:
https://nixpkgs-update-logs.nix-community.org/libtraceevent/2026-03-17.log

The tag present in the upstream repository is 1.9.0, not 1.9. I'm not
sure how could the previous derivation work, but perhaps the tag
"libtraceevent-1.9" was deleted from the repository and replaced with
the 1.9.0 after the source was cached by cache.nixos.org.

Fix the version number to match upstream and also update fetchgit
argument from rev to tag, which is the preferred way nowadays.
2026-03-17 17:13:35 +01:00

69 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchgit,
pkg-config,
asciidoc,
xmlto,
docbook_xml_dtd_45,
docbook_xsl,
meson,
ninja,
cunit,
gitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libtraceevent";
version = "1.9.0";
src = fetchgit {
url = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git";
tag = "libtraceevent-${finalAttrs.version}";
hash = "sha256-4KuF+UNMWxfxXYVlS0cBY5/p242UQ/NoRRVK+wmn04E=";
};
postPatch = ''
chmod +x Documentation/install-docs.sh.in
patchShebangs --build check-manpages.sh Documentation/install-docs.sh.in
'';
outputs = [
"out"
"dev"
"devman"
"doc"
];
nativeBuildInputs = [
meson
ninja
pkg-config
asciidoc
xmlto
docbook_xml_dtd_45
docbook_xsl
];
ninjaFlags = [
"all"
"docs"
];
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 = {
description = "Linux kernel trace event library";
homepage = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/";
license = lib.licenses.lgpl21Only;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ wentasah ];
};
})