3
0
Fork 0
forked from mirrors/nixpkgs

Workaround SCons paranoia

svn path=/nixpkgs/trunk/; revision=26873
This commit is contained in:
Michael Raskin 2011-04-18 07:41:54 +00:00
parent 5662304328
commit 964d56e060

View file

@ -394,6 +394,19 @@ let inherit (builtins) head tail trace; in
cmake -D CMAKE_INSTALL_PREFIX="$out" ${cmakeRPathFlag}${toString cmakeFlags} ..
'') ["minInit" "addInputs" "doUnpack"];
doScons = fullDepEntry (''
ensureDir $out
${if (attrByPath ["sconsCleanEnv"] false args)
then ""
else ''
sed -e '1iimport os' -i SConstruct
sed -e 's/env *= *Environment *.*/&; env['"'"'ENV'"'"']=os.environ;/' -i SConstruct
''
}
scons PREFIX=$out
scons PREFIX=$out install
'') ["minInit" "doUnpack" "addInputs" "defEnsureDir"];
/*debug = x:(trace x x);
debugX = x:(trace (toXML x) x);*/