nixpkgs/pkgs/build-support/kernel/modules-closure.nix
Yury G. Kudryashov 0fe84d6eed Rewrite modules-related packaging
* Replace module-init-tools by kmod
* Drop MODULE_DIR patch

We'll maintain /lib/modules/modversion symlink instead. This way both
module-init-tools and libkmod will work without patches.

svn path=/nixpkgs/branches/kmod-MODULE_DIR/; revision=33428
2012-03-26 15:15:27 +00:00

16 lines
558 B
Nix

# Given a modules tree (with modules in $modulesTree/lib/modules/VERSION),
# produce a module tree in $out/lib/modules/VERSION that contains only
# the modules identified by `rootModules', plus their dependencies.
# Also generate an appropriate modules.dep.
{ stdenv, modulesTree, nukeReferences, rootModules
, kmod, allowMissing ? false }:
stdenv.mkDerivation {
name = modulesTree.name + "-shrunk";
builder = ./modules-closure.sh;
buildInputs = [nukeReferences];
inherit modulesTree rootModules kmod allowMissing;
allowedReferences = ["out"];
}