kmod: 29 -> 30

While at it added trivial updater.

Changes: https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/plain/NEWS?h=v30
This commit is contained in:
Sergei Trofimovich 2022-07-11 23:01:59 +01:00
parent 49546f4413
commit 3feca2a040

View file

@ -3,6 +3,7 @@
, libxslt, xz, zstd, elf-header
, withDevdoc ? stdenv.hostPlatform == stdenv.buildPlatform
, withStatic ? stdenv.hostPlatform.isStatic
, gitUpdater
}:
let
@ -11,7 +12,7 @@ let
in stdenv.mkDerivation rec {
pname = "kmod";
version = "29";
version = "30";
# autogen.sh is missing from the release tarball,
# and we need to run it to regenerate gtk_doc.make,
@ -20,7 +21,7 @@ in stdenv.mkDerivation rec {
# https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/commit/.gitignore?id=61a93a043aa52ad62a11ba940d4ba93cb3254e78
src = fetchzip {
url = "https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/snapshot/kmod-${version}.tar.gz";
sha256 = "sha256-7O5VdBd8rBZdIERPE+2zkjj5POvSurwlV2EpWmkFUD0=";
sha256 = "sha256-/dih2LoqgRrAsVdHRwld28T8pXgqnzapnQhqkXnxbbc=";
};
outputs = [ "out" "dev" "lib" ] ++ lib.optional withDevdoc "devdoc";
@ -57,6 +58,13 @@ in stdenv.mkDerivation rec {
ln -s bin $out/sbin
'';
passthru.updateScript = gitUpdater {
inherit pname version;
# No nicer place to find latest release.
url = "https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git";
rev-prefix = "v";
};
meta = with lib; {
description = "Tools for loading and managing Linux kernel modules";
longDescription = ''