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