mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 08:01:14 +00:00
28b6fb61e6
This is done for the sake of Yosemite, which does not have gcc, and yet this change is also compatible with Linux.
20 lines
370 B
Bash
20 lines
370 B
Bash
source $stdenv/setup
|
|
|
|
echo $NIX_CC
|
|
|
|
buildPhase() {
|
|
for i in bin/*; do
|
|
patchelf \
|
|
--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 \
|
|
$i
|
|
done
|
|
}
|
|
|
|
installPhase() {
|
|
mkdir -p $out
|
|
cp -prvd * $out/
|
|
}
|
|
|
|
genericBuild
|