From 3feca2a040927cffcb78a47598b92e390f0d7b68 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 11 Jul 2022 23:01:59 +0100 Subject: [PATCH] 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 --- pkgs/os-specific/linux/kmod/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kmod/default.nix b/pkgs/os-specific/linux/kmod/default.nix index a0b390b756da..081f83b013ab 100644 --- a/pkgs/os-specific/linux/kmod/default.nix +++ b/pkgs/os-specific/linux/kmod/default.nix @@ -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 = ''