a7703662a4
svn path=/nixpkgs/branches/stdenv-updates/; revision=10145
35 lines
774 B
Nix
35 lines
774 B
Nix
args : with args;
|
|
with builderDefs {
|
|
addSbinPath = true;
|
|
src = "";
|
|
buildInputs = [lndir module_init_tools];
|
|
configureFlags = [];
|
|
} null; /* null is a terminator for sumArgs */
|
|
let
|
|
|
|
doCollect = FullDepEntry (''
|
|
ensureDir $out/
|
|
cd $out/
|
|
for i in $moduleSources; do
|
|
lndir $i/
|
|
done
|
|
rm -rf nix-support
|
|
cd lib/modules/
|
|
rm */modules.*
|
|
MODULE_DIR=$PWD/ depmod -a
|
|
'') [minInit addInputs defEnsureDir];
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "module-aggregator";
|
|
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. Earlier directories in
|
|
moduleSources have higher priority.
|
|
";
|
|
};
|
|
}
|