diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2016-05-05 08:18:44 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2016-05-05 08:25:38 +0200 |
commit | 7a005601d48f760864258e369364b3b847d4e9fd (patch) | |
tree | fb562597c59110eb319e9cd8f484280fcf587433 /pkgs/build-support/setup-hooks | |
parent | 7d7a9df3605c86e17bced51afe67eecd43f99754 (diff) | |
parent | df310048e5f4a516663bf8c5a74029b54813a7f3 (diff) | |
download | nixlib-7a005601d48f760864258e369364b3b847d4e9fd.tar nixlib-7a005601d48f760864258e369364b3b847d4e9fd.tar.gz nixlib-7a005601d48f760864258e369364b3b847d4e9fd.tar.bz2 nixlib-7a005601d48f760864258e369364b3b847d4e9fd.tar.lz nixlib-7a005601d48f760864258e369364b3b847d4e9fd.tar.xz nixlib-7a005601d48f760864258e369364b3b847d4e9fd.tar.zst nixlib-7a005601d48f760864258e369364b3b847d4e9fd.zip |
Merge branch 'master' to resolve conflicts
Diffstat (limited to 'pkgs/build-support/setup-hooks')
-rw-r--r-- | pkgs/build-support/setup-hooks/scatter_output.sh | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/pkgs/build-support/setup-hooks/scatter_output.sh b/pkgs/build-support/setup-hooks/scatter_output.sh deleted file mode 100644 index f2a501c55e4f..000000000000 --- a/pkgs/build-support/setup-hooks/scatter_output.sh +++ /dev/null @@ -1,56 +0,0 @@ -preFixupPhases+=" scatter_files" -preDistPhases+=" propagate_bin_input" - -SCATTER_BIN_DEFAULT=${SCATTER_BIN_DEFAULT:-"/lib/*.so* /bin/*"} -SCATTER_DOC_DEFAULT=${SCATTER_DOC_DEFAULT:-"/share/man/* /share/doc/*"} - - -scatter_files() { - save_nullglob=$(shopt -p nullglob) - for o in $outputs; do - [[ "$o" == "out" ]] && continue - v=files_${o} - - #if files_'output' isn't set in derivative, use defualts for some - [[ ${!v} ]] || { - case $o in - bin) - v=SCATTER_BIN_DEFAULT - ;; - doc) - v=SCATTER_DOC_DEFAULT - ;; - *) - continue - ;; - esac - } - - # prepend each path with $out - paths=$out${!v// \// $out/} - shopt -s nullglob - for f in $paths; do - shopt -u nullglob - dist=${!o}${f#$out} - mkdir -p $(dirname $dist) - cp -pr $f $dist - # remove source, not forgetting to clean empty dirs - rm -r $f - rmdir --ignore-fail-on-non-empty $(dirname $f) - done - find ${!o} -type f -exec $SHELL -c 'patchelf --set-rpath $(patchelf --print-rpath {} 2>/dev/null):'${!o}'/lib {} 2>/dev/null && patchelf --shrink-rpath {}' \; - done - eval $save_nullglob -} - -propagate_bin_input() { - if [[ -n ${bin:-} ]]; then - mkdir -p $out/nix-support - echo $bin >> $out/nix-support/propagated-native-build-inputs - fi - - if [[ -n ${bin:-} && -n ${doc:-} ]]; then - mkdir -p $bin/nix-support - echo $doc >> $bin/nix-support/propagated-user-env-packages - fi -} |