mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Add comments explaining the purpose of the postBuild prepend
svn path=/nixpkgs/trunk/; revision=27922
This commit is contained in:
parent
5db8c88547
commit
20ebca303e
1 changed files with 5 additions and 0 deletions
|
@ -77,6 +77,11 @@ stdenv.mkDerivation {
|
|||
|
||||
inherit preConfigure src module_init_tools localVersion postInstall;
|
||||
|
||||
#Currently, the builder sets $MODULE_DIR during installPhase. This causes
|
||||
#problems with at least linux 3.0, so we need to conditionally avoid
|
||||
#setting $MODULE_DIR. This prepend to postBuild accomplishes this with a
|
||||
#sed/eval trick thanks to MarcWeber
|
||||
|
||||
postBuild = (if setModuleDir then "" else ''
|
||||
eval "$(type installPhase | sed -e '1d' -e '/export MODULE_DIR/d')";
|
||||
'') + postBuild;
|
||||
|
|
Loading…
Reference in a new issue