mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
0d299bc2f7
svn path=/nixpkgs/trunk/; revision=4980
20 lines
No EOL
383 B
Bash
20 lines
No EOL
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 |