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