forked from mirrors/nixpkgs
0d299bc2f7
svn path=/nixpkgs/trunk/; revision=4980
20 lines
383 B
Bash
20 lines
383 B
Bash
source $stdenv/setup
|
|
|
|
buildPhase=buildPhase
|
|
buildPhase() {
|
|
glibc=$(cat $NIX_GCC/nix-support/orig-glibc)
|
|
for i in bin/*; do
|
|
patchelf \
|
|
--set-interpreter $glibc/lib/ld-linux.so.* \
|
|
--set-rpath $libX11/lib:$libXext/lib \
|
|
$i
|
|
done
|
|
}
|
|
|
|
installPhase=installPhase
|
|
installPhase() {
|
|
ensureDir $out
|
|
cp -prvd * $out/
|
|
}
|
|
|
|
genericBuild |