Add kmod, the replacement for the now-defunct module-init-tools

The kmod tools appear to take a flag to name the location of the modules
directory, so we may not need to migrate our module-init-tools patches

svn path=/nixpkgs/trunk/; revision=33413
This commit is contained in:
Shea Levy 2012-03-25 20:05:36 +00:00
parent 31507bc274
commit 343fb0be1e
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,21 @@
{ stdenv, fetchurl, xz, zlib, pkgconfig }:
stdenv.mkDerivation {
name = "kmod-7";
src = fetchurl {
url = ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-7.tar.xz;
sha256 = "1xvsy2zcfdimj4j5b5yyxaqx2byabmwq8qlzjm0hqzpyxxgfw1lq";
};
buildInputs = [ pkgconfig xz zlib ];
configureFlags = [ "--with-xz" "--with-zlib" ];
meta = {
homepage = http://www.kernel.org/pub/linux/utils/kernel/kmod/;
description = "Tools for loading and managing Linux kernel modules";
maintainers = [ stdenv.lib.maintainers.shlevy ];
platforms = stdenv.lib.platforms.linux;
};
}

View File

@ -5808,6 +5808,8 @@ let
klibcShrunk = callPackage ../os-specific/linux/klibc/shrunk.nix { }; klibcShrunk = callPackage ../os-specific/linux/klibc/shrunk.nix { };
kmod = callPackage ../os-specific/linux/kmod { };
kvm = qemu_kvm; kvm = qemu_kvm;
libcap = callPackage ../os-specific/linux/libcap { }; libcap = callPackage ../os-specific/linux/libcap { };