1 # This setup hook, for each output, moves everything in $output/lib64
2 # to $output/lib, and replaces $output/lib64 with a symlink to
3 # $output/lib. The rationale is that lib64 directories are unnecessary
4 # in Nix (since 32-bit and 64-bit builds of a package are in different
6 # If the move would overwrite anything, it should fail on rmdir.
8 fixupOutputHooks
+=(_moveLib64
)
11 if [ "${dontMoveLib64-}" = 1 ]; then return; fi
12 if [ ! -e "$prefix/lib64" -o -L "$prefix/lib64" ]; then return; fi
13 echo "moving $prefix/lib64/* to $prefix/lib"
16 for i
in $prefix/lib64
/*; do
17 mv --no-clobber "$i" $prefix/lib
21 ln -s lib
$prefix/lib64