2006-03-03 20:25:06 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
buildPhase=buildPhase
|
|
|
|
buildPhase() {
|
|
|
|
glibc=$(cat $NIX_GCC/nix-support/orig-glibc)
|
2006-03-03 23:31:16 +01:00
|
|
|
for i in bin/*; do
|
|
|
|
patchelf \
|
|
|
|
--set-interpreter $glibc/lib/ld-linux.so.* \
|
|
|
|
--set-rpath $libX11/lib:$libXext/lib \
|
|
|
|
$i
|
|
|
|
done
|
2006-03-03 20:25:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
installPhase=installPhase
|
|
|
|
installPhase() {
|
|
|
|
ensureDir $out
|
|
|
|
cp -prvd * $out/
|
|
|
|
}
|
|
|
|
|
|
|
|
genericBuild
|