mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03: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
@ -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 New Issue
Block a user