28b6fb61e6
This is done for the sake of Yosemite, which does not have gcc, and yet this change is also compatible with Linux.
18 lines
305 B
Bash
18 lines
305 B
Bash
source $stdenv/setup
|
|
|
|
buildPhase() {
|
|
for i in bin/*; do
|
|
patchelf \
|
|
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
|
--set-rpath $libX11/lib:$libXext/lib \
|
|
$i
|
|
done
|
|
}
|
|
|
|
installPhase() {
|
|
mkdir -p $out
|
|
cp -prvd * $out/
|
|
}
|
|
|
|
genericBuild
|