nixpkgs/pkgs/os-specific/linux/module-init-tools/aggregator.nix
Michael Raskin 29e62732c9 Now aggregator works at last, after some SVN co/up/ci gone wrong.
svn path=/nixpkgs/trunk/; revision=10132
2008-01-13 10:49:52 +00:00

37 lines
814 B
Nix

args : with args;
with builderDefs {
addSbinPath = true;
src = "";
buildInputs = [module_init_tools];
configureFlags = [];
} null; /* null is a terminator for sumArgs */
let
doCollect = FullDepEntry (''
ensureDir $out/lib/modules
cd $out/
for i in $moduleSources; do
cp -rfs $i/* .
chmod -R u+w .
done
rm -rf nix-support
cd lib/modules/
rm */modules.*
MODULE_DIR=$PWD/ depmod -a
cd $out/
'') [minInit addInputs defEnsureDir];
in
stdenv.mkDerivation rec {
name = "kernel-modules";
inherit moduleSources;
builder = writeScript (name + "-builder")
(textClosure [doCollect doForceShare doPropagate]);
meta = {
description = "
A directory to hold all the modules, including those
built separately from kernel. Later mentioned directories in
moduleSources have higher priority.
";
};
}