diff options
Diffstat (limited to 'pkgs/os-specific/linux/kmod/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/kmod/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/kmod/default.nix b/pkgs/os-specific/linux/kmod/default.nix index c75b8bec1466..75654226616e 100644 --- a/pkgs/os-specific/linux/kmod/default.nix +++ b/pkgs/os-specific/linux/kmod/default.nix @@ -8,10 +8,18 @@ stdenv.mkDerivation { sha256 = "1xvsy2zcfdimj4j5b5yyxaqx2byabmwq8qlzjm0hqzpyxxgfw1lq"; }; - buildInputs = [ pkgconfig xz zlib ]; + buildInputs = [ xz zlib ]; + buildNativeInputs = [ pkgconfig ]; configureFlags = [ "--with-xz" "--with-zlib" ]; + postInstall = '' + mkdir -p $out/sbin + for i in depmod insmod lsmod modinfo modprobe rmmod; do + ln -sv ../bin/kmod $out/sbin/$i + done + ''; + meta = { homepage = http://www.kernel.org/pub/linux/utils/kernel/kmod/; description = "Tools for loading and managing Linux kernel modules"; |