This reverts commit0a944b345e, reversing changes made to61733ed6cc. I dislike these massive stdenv changes with unclear motivation, especially when they involve gratuitous mass renames like NIX_CC -> NIX_BINUTILS. The previous such rename (NIX_GCC -> NIX_CC) caused months of pain, so let's not do that again. (cherry picked from commitec8d41f08c)
19 lines
369 B
Bash
19 lines
369 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-cc)/lib \
|
|
$i
|
|
done
|
|
}
|
|
|
|
installPhase() {
|
|
mkdir -p $out
|
|
cp -prvd * $out/
|
|
}
|
|
|
|
genericBuild
|