21 lines
421 B
Bash
21 lines
421 B
Bash
source $stdenv/setup
|
|
|
|
echo $NIX_GCC
|
|
|
|
buildPhase=buildPhase
|
|
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=installPhase
|
|
installPhase() {
|
|
ensureDir $out
|
|
cp -prvd * $out/
|
|
}
|
|
|
|
genericBuild |