1 if [ -e "$NIX_ATTRS_SH_FILE" ]; then .
"$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh
]; then . .attrs.sh
; fi
12 # Remove crap in the root directory.
15 if test -f $file ; then
20 # Set the dynamic linker.
22 for i
in $libraries; do
23 rpath
=$rpath${rpath:+:}$i/lib
25 find $out -type f
-perm -0100 \
26 -exec patchelf
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" {} \
;
27 find $out -type f
-perm -0100 \
28 -exec patchelf
--set-rpath "$rpath" {} \
;