2008-03-15 21:45:57 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2008-03-15 22:30:01 +00:00
|
|
|
echo $NIX_GCC
|
|
|
|
|
2008-03-15 21:45:57 +00:00
|
|
|
buildPhase() {
|
|
|
|
for i in bin/*; do
|
|
|
|
patchelf \
|
|
|
|
--set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
|
2008-03-15 22:30:01 +00:00
|
|
|
--set-rpath $libX11/lib:$libXext/lib:$libSM/lib:$(cat $NIX_GCC/nix-support/orig-gcc)/lib \
|
2008-03-15 21:45:57 +00:00
|
|
|
$i
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
installPhase() {
|
|
|
|
ensureDir $out
|
|
|
|
cp -prvd * $out/
|
|
|
|
}
|
|
|
|
|
2009-04-23 14:31:10 +01:00
|
|
|
genericBuild
|