2009-03-24 09:00:34 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
echo $NIX_GCC
|
|
|
|
|
|
|
|
buildPhase() {
|
|
|
|
for i in bin/*; do
|
|
|
|
patchelf \
|
|
|
|
--set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
|
|
|
|
--set-rpath $libX11/lib:$libXext/lib:$libSM/lib:$(cat $NIX_GCC/nix-support/orig-gcc)/lib \
|
|
|
|
$i
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
installPhase() {
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out
|
2009-03-24 09:00:34 +00:00
|
|
|
cp -prvd * $out/
|
|
|
|
}
|
|
|
|
|
2009-04-23 14:31:10 +01:00
|
|
|
genericBuild
|