2012-03-25 21:05:36 +01:00
|
|
|
{ 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" ];
|
|
|
|
|
2012-04-04 20:24:07 +01:00
|
|
|
patches = [ ./module-dir.patch ];
|
|
|
|
|
2012-04-04 20:28:33 +01:00
|
|
|
postInstall = ''
|
|
|
|
for prog in lsmod rmmod insmod modinfo modprobe depmod
|
|
|
|
do
|
|
|
|
ln -sv kmod $out/bin/$prog
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2012-03-25 21:05:36 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|